[CA-107357] Migrate VM Wizard allows selection of broken SRs

Detached SRs are no longer selectable.

Signed-off-by: Frezzle <frederico.mazzone@citrix.com>
This commit is contained in:
Frezzle 2016-07-07 14:57:20 +01:00
parent 8de55cb90c
commit 54a2ba7ac4

View File

@ -429,7 +429,7 @@ namespace XenAdmin.Wizards.GenericPages
continue;
var sr = TargetConnection.Resolve(pbd.SR);
if (sr == null)
if (sr == null || sr.IsDetached)
continue;
if ((sr.content_type.ToLower() == "iso" || sr.type.ToLower() == "iso") && !resource.SRTypeInvalid)