host.controller.

This commit is contained in:
Julien Fontanet
2013-12-19 15:39:07 +01:00
parent 2ef2f9bbc3
commit c443422b10

View File

@@ -195,7 +195,20 @@ module.exports = (refsToUUIDs) ->
address: get('address')
controller: get('controller')
controller: @dynamic (
->
for ref in @generator.resident_VMs
UUID = refsToUUIDs[ref]
VM = @collection.get UUID
return UUID if VM?.type is 'VM-controller'
null
), {
'VM-controller': {
enter: (controller, UUID) ->
if controller.$container is @value.UUID
@field = UUID
}
}
CPUs: [] # TODO