Enable console for hosts.

This commit is contained in:
Julien Fontanet
2015-02-04 13:54:43 +01:00
parent b73de087d2
commit de4468a15a

View File

@@ -47,7 +47,7 @@ $httpListenFailure = (error) ->
#=====================================================================
getVmConsoleUrl = (xo, id) ->
vm = xo.getObject(id, 'VM')
vm = xo.getObject(id, ['VM', 'VM-controller'])
return unless vm?.power_state is 'Running'
{sessionId} = xo.getXAPI(vm)