CA-359709: Add error message for RBAC failure in BugToolWizard

Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
This commit is contained in:
Danilo Del Busso 2021-10-28 13:55:29 +01:00
parent ae1efbd54d
commit f5149a415f
No known key found for this signature in database
GPG Key ID: 0C48542619080FD4
3 changed files with 13 additions and 1 deletions

View File

@ -146,7 +146,7 @@ namespace XenAdmin.Wizards
if (selectedHostsConnections.Any(Helpers.ConnectionRequiresRbac))
{
rbacWarningPage.AddApiMethodsCheck(selectedHostsConnections, SingleHostStatusAction.StaticRBACDependencies, Messages.RBAC_CROSS_POOL_MIGRATE_VM_BLOCKED);
rbacWarningPage.AddApiMethodsCheck(selectedHostsConnections, SingleHostStatusAction.StaticRBACDependencies, Messages.RBAC_GET_SYSTEM_STATUS_BLOCKED);
AddAfterPage(bugToolPageSelectHosts1, rbacWarningPage);
}
}

View File

@ -31860,6 +31860,15 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to Current access levels do not allow download of system status report. Log in as a different user with sufficient privileges on the source host and try again..
/// </summary>
public static string RBAC_GET_SYSTEM_STATUS_BLOCKED {
get {
return ResourceManager.GetString("RBAC_GET_SYSTEM_STATUS_BLOCKED", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Your current role is &apos;{1}&apos;.
///

View File

@ -14731,4 +14731,7 @@ Any disk in your VM's DVD drive will be ejected when installing {1}.</value>
<data name="RBAC_INTRA_POOL_COPY_VM_BLOCKED" xml:space="preserve">
<value>Current access levels do not allow copying of VMs. Log in as a different user with sufficient privileges on the host and try again.</value>
</data>
<data name="RBAC_GET_SYSTEM_STATUS_BLOCKED" xml:space="preserve">
<value>Current access levels do not allow download of system status report. Log in as a different user with sufficient privileges on the source host and try again.</value>
</data>
</root>