mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Merge pull request #923 from MihaelaStoica/CA-205693
CA-205693: Add a check to prevent Index out of range error
This commit is contained in:
commit
0e42d71bb1
@ -147,6 +147,10 @@ namespace XenAdmin.Commands
|
||||
|
||||
actionsToComplete.Add(getActivateVBDAction(vbd));
|
||||
}
|
||||
|
||||
if (actionsToComplete.Count == 0)
|
||||
return;
|
||||
|
||||
if (actionsToComplete.Count > 1)
|
||||
RunMultipleActions(actionsToComplete, Messages.ACTION_ACTIVATING_MULTIPLE_VDIS_TITLE, Messages.ACTION_ACTIVATING_MULTIPLE_VDIS_STATUS, Messages.COMPLETED, true);
|
||||
else
|
||||
|
@ -150,6 +150,10 @@ namespace XenAdmin.Commands
|
||||
|
||||
actionsToComplete.Add(getDeactivateVBDAction(vbd));
|
||||
}
|
||||
|
||||
if (actionsToComplete.Count == 0)
|
||||
return;
|
||||
|
||||
if (actionsToComplete.Count > 1)
|
||||
RunMultipleActions(actionsToComplete, Messages.ACTION_ACTIVATING_MULTIPLE_VDIS_TITLE, Messages.ACTION_ACTIVATING_MULTIPLE_VDIS_STATUS, Messages.COMPLETED, true);
|
||||
else
|
||||
|
@ -454,6 +454,10 @@ namespace XenAdmin.Commands
|
||||
|
||||
actionsToComplete.AddRange(getDestroyVDIAction(vdi, deletedVMSnapshots));
|
||||
}
|
||||
|
||||
if (actionsToComplete.Count == 0)
|
||||
return;
|
||||
|
||||
if (actionsToComplete.Count > 1)
|
||||
RunMultipleActions(actionsToComplete, Messages.ACTION_DELETING_MULTIPLE_STORAGE_ITEMS_TITLE, Messages.ACTION_DELETING_MULTIPLE_STORAGE_ITEMS_STATUS, Messages.COMPLETED, true);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user