Skip to content

Commit 37e5d36

Browse files
committed
CLOUDSTACK-10284:Creating a snapshot from VM Snapshot generates error if hypervisor is not KVM.
1 parent f96398c commit 37e5d36

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ui/scripts/storage.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,10 @@
28592859
if (jsonObj.state == "Ready") {
28602860
allowedActions.push("remove");
28612861
allowedActions.push("revertToVMSnapshot");
2862-
allowedActions.push("takeSnapshot");
2862+
2863+
if (args && args.context && args.context.instances && args.context.instances[0].hypervisor && args.context.instances[0].hypervisor === "KVM") {
2864+
allowedActions.push("takeSnapshot");
2865+
}
28632866
}
28642867

28652868
return allowedActions;

0 commit comments

Comments
 (0)