mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
[UI] kvm vm snapshot not shown if kvm.snapshot.enabled is set to false
This commit is contained in:
parent
221aea5730
commit
64c03dbc31
@ -2106,7 +2106,8 @@
|
||||
} else if (jsonObj.state == 'Running') {
|
||||
allowedActions.push("stop");
|
||||
allowedActions.push("restart");
|
||||
allowedActions.push("snapshot");
|
||||
if (jsonObj.hypervisor != 'KVM' || g_KVMsnapshotenabled == true)
|
||||
allowedActions.push("snapshot");
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("reset");
|
||||
|
||||
@ -2135,7 +2136,8 @@
|
||||
allowedActions.push("start");
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("reset");
|
||||
allowedActions.push("snapshot");
|
||||
if (jsonObj.hypervisor != 'KVM' || g_KVMsnapshotenabled == true)
|
||||
allowedActions.push("snapshot");
|
||||
allowedActions.push("scaleUp"); //when vm is stopped, scaleUp is supported for all hypervisors
|
||||
allowedActions.push("changeAffinity");
|
||||
|
||||
|
||||
@ -1896,7 +1896,7 @@
|
||||
|
||||
if (jsonObj.hypervisor != "Ovm" && jsonObj.state == "Ready") {
|
||||
if (jsonObj.hypervisor == 'KVM') {
|
||||
if (json.vmstate == 'Running') {
|
||||
if (jsonObj.vmstate == 'Running') {
|
||||
if (g_KVMsnapshotenabled == true) { //"kvm.snapshot.enabled" flag should be taken to account only when snapshot is being created for Running vm (CLOUDSTACK-4428)
|
||||
allowedActions.push("takeSnapshot");
|
||||
allowedActions.push("recurringSnapshot");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user