From 37e5d3631640428263311991b2c29a219d39cc43 Mon Sep 17 00:00:00 2001 From: Nitesh Sarda Date: Mon, 12 Feb 2018 16:40:27 +0530 Subject: [PATCH] CLOUDSTACK-10284:Creating a snapshot from VM Snapshot generates error if hypervisor is not KVM. --- ui/scripts/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 1cba7505491..e9b6138d0b6 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -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;