Merge pull request #2451 from Accelerite/CLOUDSTACK-10284

CLOUDSTACK-10284:Creating a snapshot from VM Snapshot generates error if hypervisor is not KVM.
This commit is contained in:
Rafael Weingärtner 2018-02-23 07:55:19 -03:00 committed by GitHub
commit f8d98fd1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;