From 48564099f321ee19a8f81ffd8cb2c03871760abc Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Fri, 11 Mar 2022 12:22:13 +0100 Subject: [PATCH] B #5707: Fix detail view for VM in pending state (#1834) (cherry picked from commit 494311499a340541c3ca374f4314fd052a6bd065) --- src/sunstone/public/app/opennebula/vm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/opennebula/vm.js b/src/sunstone/public/app/opennebula/vm.js index ec0eb93462..c6af49096a 100644 --- a/src/sunstone/public/app/opennebula/vm.js +++ b/src/sunstone/public/app/opennebula/vm.js @@ -1286,7 +1286,8 @@ define(function(require) { var actionEnabled = Config.isTabActionEnabled("vms-tab", "VM.save_virt_viewer"); var vncSupported = graphicSupported(element, "vnc"); var spiceSupported = graphicSupported(element, "spice"); - var isKVM = history.HID ? isKVMVM(history.HID) : false; + var hostId = history && history.HID + var isKVM = hostId ? isKVMVM(hostId) : false; return (actionEnabled && history && (vncSupported || spiceSupported) && isKVM) ? {