mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1422 from geosharath/CA-241847
CA-241847: [VMSS] VM Protection policies pop-up from Pool -> VM Protection policies raises XenCenter error on XS 6.1
This commit is contained in:
commit
f2f6afe52a
@ -104,7 +104,6 @@ namespace XenAdmin.Alerts
|
||||
public PolicyAlert(IXenConnection connection, string body)
|
||||
{
|
||||
PolicyType = "VMPP";
|
||||
numberOfVMsFailed = Text.Split('\n').Length;
|
||||
var sb = new StringBuilder();
|
||||
try
|
||||
{
|
||||
@ -116,6 +115,7 @@ namespace XenAdmin.Alerts
|
||||
if (_fnames[0].InnerText == "error")
|
||||
{
|
||||
Type = "error";
|
||||
numberOfVMsFailed = 0;
|
||||
_fnames = xmlDocument.GetElementsByTagName("error");
|
||||
for (int i = 0; i < _fnames.Count; i++)
|
||||
{
|
||||
@ -128,6 +128,7 @@ namespace XenAdmin.Alerts
|
||||
if (vm == null)
|
||||
continue;
|
||||
sb.AppendFormat("VM '{0}': ", vm.Name);
|
||||
numberOfVMsFailed++;
|
||||
}
|
||||
if (child.Name == "errorcode")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user