mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1833 from jijiang/master
CA-270505: Use generic msg if VM migr not allowed
This commit is contained in:
commit
93935e5e48
@ -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;
|
||||
}
|
||||
|
||||
|
9
XenModel/Messages.Designer.cs
generated
9
XenModel/Messages.Designer.cs
generated
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user