CLOUDSTACK-10284:Creating a snapshot from VM Snapshot generates error if hypervisor is not KVM.

This commit is contained in:
Nitesh Sarda 2018-02-12 16:40:27 +05:30
parent f96398c127
commit 37e5d36316
1 changed files with 4 additions and 1 deletions

View File

@ -2859,7 +2859,10 @@
if (jsonObj.state == "Ready") {
allowedActions.push("remove");
allowedActions.push("revertToVMSnapshot");
allowedActions.push("takeSnapshot");
if (args && args.context && args.context.instances && args.context.instances[0].hypervisor && args.context.instances[0].hypervisor === "KVM") {
allowedActions.push("takeSnapshot");
}
}
return allowedActions;