summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-06-16 13:52:33 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-16 13:52:33 +0000
commit523ae3b3247412daff4c127f505fc64d6dc67696 (patch)
tree4868a20ffb17f44f2ea178b94f5009a733c5209a
parent7994abe6083f408823149669fa2e51ef7d341a8e (diff)
parent0910704833646ae7b23e757bb443ed4ad2fe9459 (diff)
Merge "Mask ipmitool credentials"
-rw-r--r--deploy/dha_adapters/zte_adapter.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/deploy/dha_adapters/zte_adapter.py b/deploy/dha_adapters/zte_adapter.py
index f6279fbf0..1e610ca41 100644
--- a/deploy/dha_adapters/zte_adapter.py
+++ b/deploy/dha_adapters/zte_adapter.py
@@ -27,14 +27,15 @@ class ZteAdapter(IpmiAdapter):
WAIT_LOOP = 600
log('RESET Node %s' % node_id)
cmd_prefix = self.ipmi_cmd(node_id)
- state = exec_cmd('%s chassis power status' % cmd_prefix)
+ state = exec_cmd('%s chassis power status' % cmd_prefix, mask_args=[8,10])
if state == 'Chassis Power is on':
was_shut_off = False
done = False
- exec_cmd('%s chassis power cycle' % cmd_prefix)
+ exec_cmd('%s chassis power cycle' % cmd_prefix, mask_args=[8,10])
for i in range(WAIT_LOOP):
state, _ = exec_cmd('%s chassis power status' % cmd_prefix,
- False)
+ check=False,
+ mask_args=[8,10])
if state == 'Chassis Power is off':
was_shut_off = True
elif state == 'Chassis Power is on' and was_shut_off: