CLOUDSTACK-4428: UI > volume page > when hypervisor is KVM and kvm.snapshot.enabled is false, still show Take Snapshot on a detached volume.

This commit is contained in:
Jessica Wang 2013-11-12 11:33:39 -08:00
parent 9f8f74c4ed
commit 5d41d79802
1 changed files with 1 additions and 1 deletions

View File

@ -1900,7 +1900,7 @@
allowedActions.push("takeSnapshot");
allowedActions.push("recurringSnapshot");
} else {
if(jsonObj.vmstate == 'Stopped') {
if(jsonObj.vmstate == 'Stopped' || jsonObj.virtualmachineid == undefined) { //volume of stopped VM, or detached volume
allowedActions.push("takeSnapshot");
}
}