diff ServerMonitor/Objects/Checks/SshCheck.cs @ 4:3142e52cbe69

Lots more progress
author Brad Greco <brad@bgreco.net>
date Sun, 10 Feb 2019 20:51:26 -0500
parents 96f0b028176d
children b6fe203af9d5
line wrap: on
line diff
--- a/ServerMonitor/Objects/Checks/SshCheck.cs	Fri Jan 11 22:34:18 2019 -0500
+++ b/ServerMonitor/Objects/Checks/SshCheck.cs	Sun Feb 10 20:51:26 2019 -0500
@@ -74,7 +74,7 @@
             if (CheckExitCode)
             {
                 CheckResult result = GetIntResult(ExitCode, exitCode, "Exit code");
-                if (result.CheckStatus != CheckStatus.Success)
+                if (result.Failed)
                     result.Message += ". Command output: " + output;
                 results.Add(result);
             }