CA-234827: Destination dropdown menu content is blurred with overlapping 'Action: vm.assert_can_migrate' text in Migrate VM wizard

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2016-12-02 13:52:32 +00:00
parent c395a8ce14
commit 765dee4fe7

View File

@ -106,8 +106,11 @@ namespace XenAdmin.Wizards.CrossPoolMigrateWizard.Filters
}
catch (Failure failure)
{
disableReason = failure.Message;
if (failure.ErrorDescription[0] == Failure.RBAC_PERMISSION_DENIED)
disableReason = failure.Message.Split('\n')[0]; // we want the first line only
else
disableReason = failure.Message;
log.ErrorFormat("VM: {0}, Host: {1} - Reason: {2};", vm.opaque_ref, host.opaque_ref, failure.Message);
if (!excludedHosts.Contains(host.opaque_ref))