diff --git a/XenAdmin/SettingsPanels/HostPowerONPages/HostPowerONEditPage.cs b/XenAdmin/SettingsPanels/HostPowerONPages/HostPowerONEditPage.cs index 83421807b..6c8943afe 100644 --- a/XenAdmin/SettingsPanels/HostPowerONPages/HostPowerONEditPage.cs +++ b/XenAdmin/SettingsPanels/HostPowerONPages/HostPowerONEditPage.cs @@ -75,7 +75,7 @@ namespace XenAdmin.SettingsPanels if (_host == null) return ""; - return HostPowerOnMode == PowerOnMode.Disabled ? Messages.NONE : _host.power_on_mode; + return PoolPowerONEditPage.GetFullNameMode(_host.power_on_mode); } } @@ -229,7 +229,7 @@ namespace XenAdmin.SettingsPanels string newMode, ip, user, password; Dictionary customConfig; GetConfig(out newMode, out ip, out user, out password, out customConfig); - if (HostPowerOnMode != NewPowerOnMode) + if (_host.power_on_mode != newMode) return true; if (!Helper.AreEqual(_host.power_on_config, customConfig)) return true; diff --git a/XenAdmin/SettingsPanels/HostPowerONPages/PoolPowerONEditPage.cs b/XenAdmin/SettingsPanels/HostPowerONPages/PoolPowerONEditPage.cs index 4b3fc2868..7f7848d70 100644 --- a/XenAdmin/SettingsPanels/HostPowerONPages/PoolPowerONEditPage.cs +++ b/XenAdmin/SettingsPanels/HostPowerONPages/PoolPowerONEditPage.cs @@ -103,7 +103,7 @@ namespace XenAdmin.SettingsPanels } } - private string GetFullNameMode(string power_on_mode) + public static string GetFullNameMode(string power_on_mode) { switch (power_on_mode) {