# HG changeset patch # User Brad Greco # Date 1559266857 14400 # Node ID 06ff59b59e706dda9e01ab6215072e77d2845c77 # Parent 3866c19535fdc477cc4c5709d86e2d870a94420f Fix not being able to enable a server with a blank SSH key even if it has no SSH checks. diff -r 3866c19535fd -r 06ff59b59e70 ServerMonitor/Objects/Server.cs --- a/ServerMonitor/Objects/Server.cs Thu May 30 21:40:27 2019 -0400 +++ b/ServerMonitor/Objects/Server.cs Thu May 30 21:40:57 2019 -0400 @@ -139,7 +139,7 @@ // Do not allow enabling the server if the private key is not accessible. // Do not fire the EnabledChanged event if the Enabled state is not actually changing // from its existing value. - if ((LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true) || value == _enabled) + if ((LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true && Checks.Any(c => c is SshCheck)) || value == _enabled) return; _enabled = value; EnabledChanged?.Invoke(this, new EventArgs());