Ensure there are servers whose CPU will be downlevelled before showing the warning.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2021-05-06 15:23:38 +01:00
parent c485f8ee5e
commit 003d65087b

View File

@ -520,6 +520,8 @@ namespace XenAdmin.Core
}
}
if (hostsWithMoreFeatures.Count > 0)
{
string msg3 = string.Format(hostsWithMoreFeatures.Count == 1
? Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE
: Messages.ADD_HOST_TO_POOL_CPU_DOWN_LEVEL_HOST_MESSAGE_MULTIPLE,
@ -531,5 +533,8 @@ namespace XenAdmin.Core
return dlg.ShowDialog(Program.MainWindow) == DialogResult.Yes;
}
}
return true;
}
}
}