Skip to content

Commit

Permalink
Fix agent option
Browse files Browse the repository at this point in the history
  • Loading branch information
franklupo committed Jan 15, 2021
1 parent 5e9acbe commit 30e61a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Corsinvest.ProxmoxVE.Diagnostic.Api/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<Version>1.4.9</Version>
<Version>1.4.10</Version>
<Company>Corsinvest Srl</Company>
<Authors>Daniele Corsini</Authors>
<Copyright>Corsinvest Srl</Copyright>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.3.8</Version>
<Version>1.3.9</Version>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>cv4pve-diag</AssemblyName>
<Company>Corsinvest Srl</Company>
Expand All @@ -23,6 +23,6 @@
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="2.7.0" />

<!-- <ProjectReference Include="..\Corsinvest.ProxmoxVE.Diagnostic.Api\Corsinvest.ProxmoxVE.Diagnostic.Api.csproj" /> -->
<PackageReference Include="Corsinvest.ProxmoxVE.Diagnostic.Api" Version="1.4.9" />
<PackageReference Include="Corsinvest.ProxmoxVE.Diagnostic.Api" Version="1.4.10" />
</ItemGroup>
</Project>

0 comments on commit 30e61a2

Please sign in to comment.