diff --git a/src/sunstone/OpenNebulaVNC.rb b/src/sunstone/OpenNebulaVNC.rb index 6a24c7e222..728213a822 100644 --- a/src/sunstone/OpenNebulaVNC.rb +++ b/src/sunstone/OpenNebulaVNC.rb @@ -203,8 +203,8 @@ class OpenNebulaVNC vnc_port = vm_resource['TEMPLATE/GRAPHICS/PORT'] vnc_pw = vm_resource['TEMPLATE/GRAPHICS/PASSWD'] - if vm_resource['TEMPLATE/ESX_HOST'] # It is behind a vCenter - host = vm_resource['TEMPLATE/ESX_HOST'] + if vm_resource['MONITORING/ESX_HOST'] # It is behind a vCenter + host = vm_resource['MONITORING/ESX_HOST'] end # Generate token random_str: host:port