Merge pull request #691 from MihaelaStoica/CA-183959

CA-183959: Storage page of New VM wizard should not display over-comm…
This commit is contained in:
Gabor Apati-Nagy 2015-10-01 13:42:03 +01:00
commit db9730b1d9

View File

@ -259,10 +259,8 @@ namespace XenAdmin.Wizards.NewVMWizard
if (sr.FreeSpace < totalDiskInitialAllocation[sr.opaque_ref])
overcommitedDisk = item.OverCommit = DiskOverCommit.Error;
else if (sr.FreeSpace < totalDiskSize[sr.opaque_ref])
overcommitedDisk = item.OverCommit = DiskOverCommit.Warning;
if (overcommitedDisk != DiskOverCommit.None)
if (item.OverCommit != DiskOverCommit.None)
{
item.ImageToolTip = sr.IsThinProvisioned ?
string.Format(Messages.NEWVMWIZARD_STORAGEPAGE_SROVERCOMMIT_THIN,