From 9d35295b47ea2cdb0e807d726f5b38174c21005c Mon Sep 17 00:00:00 2001 From: Olivier Lambert Date: Tue, 5 Aug 2014 12:40:59 +0200 Subject: [PATCH] add current_operation to be able to see if the host is halted or just disabled --- src/spec.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spec.coffee b/src/spec.coffee index bf70ad1b6..b073805a1 100644 --- a/src/spec.coffee +++ b/src/spec.coffee @@ -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`.