add current_operation to be able to see if the host is halted or just disabled

This commit is contained in:
Olivier Lambert
2014-08-05 12:40:59 +02:00
parent b59d07fb5f
commit 9d35295b47

View File

@@ -354,6 +354,8 @@ module.exports = ->
enabled: -> @genval.enabled
current_operations: -> @genval.current_operations
hostname: -> @genval.hostname
iSCSI_name: -> @genval.other_config?.iscsi_iqn ? null
@@ -372,6 +374,7 @@ module.exports = ->
}
# TODO
# get values of current_operations and if "shutdown" state Halted
power_state: 'Running'
# Local SRs are handled directly in `SR.$container`.