From 4e3ec40d3e94753c665529d11a56d26bd3d8d2fc Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Mon, 6 May 2013 11:56:56 +0200 Subject: [PATCH] bug #1991: Add UNDEPLOYED state to the resize capacity condition --- src/sunstone/public/js/plugins/vms-tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 24d1b92126..4a848f4a8b 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -2330,8 +2330,8 @@ function printCapacity(vm_info){
' if (Config.isTabActionEnabled("vms-tab", "VM.resize")) { - // If VM is not RUNNING, then we forget about the attach nic form. - if (vm_info.STATE == "0" || vm_info.STATE == "1" || vm_info.STATE == "2" || vm_info.STATE == "7" || vm_info.STATE == "8"){ + // If VM is not INIT, PENDING, HOLD, FAILED, POWEROFF, UNDEPLOYED, then we forget about the resize form. + if (vm_info.STATE == "0" || vm_info.STATE == "1" || vm_info.STATE == "2" || vm_info.STATE == "7" || vm_info.STATE == "8" || vm_info.STATE == "9"){ html += '\ ' } else {