From 7fe1ed9dc81a92312cb273dc464d5f6d4259af05 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 2 Jan 2015 14:06:28 -0800 Subject: [PATCH] CLOUDSTACK-7383: UI > Instances menu > detail view > TakeSnapshot action should be hidden when VM's hypervisor is LXC. --- ui/scripts/instances.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index d439c66a533..9ed0e1678fd 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -2435,7 +2435,7 @@ allowedActions.push("restart"); if ((jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true) - || (jsonObj.hypervisor != 'LXC')) { + && (jsonObj.hypervisor != 'LXC')) { allowedActions.push("snapshot"); } @@ -2469,7 +2469,7 @@ allowedActions.push("reinstall"); if ((jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true) - || (jsonObj.hypervisor != 'LXC')) { + && (jsonObj.hypervisor != 'LXC')) { allowedActions.push("snapshot"); }