From 30e61a2a3518cca4674b3e409565ff8091e325cd Mon Sep 17 00:00:00 2001 From: Daniele Corsini Date: Fri, 15 Jan 2021 11:42:36 +0100 Subject: [PATCH] Fix agent option --- src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs | 4 ++-- .../Corsinvest.ProxmoxVE.Diagnostic.Api.csproj | 2 +- .../Corsinvest.ProxmoxVE.Diagnostic.csproj | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs b/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs index 1bbe2b0..1663244 100644 --- a/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs +++ b/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs @@ -626,7 +626,7 @@ private static void CheckQemu(ClusterInfo clusterInfo, } //agent - if (int.Parse(vm.Detail.Config.id ?? "0") == 0) + if (int.Parse(vm.Detail.Config.agent == null ? "0" : vm.Detail.Config.agent.Value) == 0) { result.Add(new DiagnosticResult { @@ -641,7 +641,7 @@ private static void CheckQemu(ClusterInfo clusterInfo, else { //agent in quest - if (vm.status == "running" && !vm.AgentGuestRunning) + if (vm.status == "running" && !vm.Detail.AgentGuestRunning.Value) { result.Add(new DiagnosticResult { diff --git a/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Corsinvest.ProxmoxVE.Diagnostic.Api.csproj b/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Corsinvest.ProxmoxVE.Diagnostic.Api.csproj index 33fd18b..11d34a8 100644 --- a/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Corsinvest.ProxmoxVE.Diagnostic.Api.csproj +++ b/src/Corsinvest.ProxmoxVE.Diagnostic.Api/Corsinvest.ProxmoxVE.Diagnostic.Api.csproj @@ -3,7 +3,7 @@ netstandard2.1 true - 1.4.9 + 1.4.10 Corsinvest Srl Daniele Corsini Corsinvest Srl diff --git a/src/Corsinvest.ProxmoxVE.Diagnostic/Corsinvest.ProxmoxVE.Diagnostic.csproj b/src/Corsinvest.ProxmoxVE.Diagnostic/Corsinvest.ProxmoxVE.Diagnostic.csproj index 0f228e9..a03d682 100644 --- a/src/Corsinvest.ProxmoxVE.Diagnostic/Corsinvest.ProxmoxVE.Diagnostic.csproj +++ b/src/Corsinvest.ProxmoxVE.Diagnostic/Corsinvest.ProxmoxVE.Diagnostic.csproj @@ -1,7 +1,7 @@  Exe - 1.3.8 + 1.3.9 netcoreapp3.1 cv4pve-diag Corsinvest Srl @@ -23,6 +23,6 @@ - + \ No newline at end of file