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