CA-270505: Use generic msg if VM migr not allowed

Signed-off-by: Ji Jiang <ji.jiang@citrix.com>
This commit is contained in:
Ji Jiang 2017-10-24 15:08:35 +01:00
parent 0611fa0b4e
commit 92db28f62a
3 changed files with 1 additions and 18 deletions

View File

@ -74,12 +74,7 @@ namespace XenAdmin.Commands
!draggedVM.allowed_operations.Contains(vm_operations.migrate_send))
{
if (draggedVM.power_state == vm_power_state.Running)
{
if (draggedVM.HasVGPUs())
return Messages.MIGRATION_NOT_ALLOWED_GPU;
else
return Messages.MIGRATION_NOT_ALLOWED;
}
return Messages.MIGRATION_NOT_ALLOWED;
return null;
}

View File

@ -22473,15 +22473,6 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to This VM may not migrate because it has a dedicated GPU.
/// </summary>
public static string MIGRATION_NOT_ALLOWED_GPU {
get {
return ResourceManager.GetString("MIGRATION_NOT_ALLOWED_GPU", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This VM may not migrate; it is not on shared storage.
/// </summary>

View File

@ -7822,9 +7822,6 @@ To learn more about the [XenServer] Live VDI Migration feature or to start a [Xe
<data name="MIGRATION_NOT_ALLOWED_CPU_FEATURES" xml:space="preserve">
<value>This VM may not migrate because the destination host does not have some of the CPU features that the VM is currently using</value>
</data>
<data name="MIGRATION_NOT_ALLOWED_GPU" xml:space="preserve">
<value>This VM may not migrate because it has a dedicated GPU</value>
</data>
<data name="MIGRATION_NOT_ALLOWED_NO_SHARED_STORAGE" xml:space="preserve">
<value>This VM may not migrate; it is not on shared storage</value>
</data>