add cmd debug output to validate_services c-h amulet utils
This commit is contained in:
parent
7cc67da545
commit
10cd59bd7e
@ -79,6 +79,8 @@ class AmuletUtils(object):
|
|||||||
for k, v in six.iteritems(commands):
|
for k, v in six.iteritems(commands):
|
||||||
for cmd in v:
|
for cmd in v:
|
||||||
output, code = k.run(cmd)
|
output, code = k.run(cmd)
|
||||||
|
self.log.debug('{} `{}` returned {}'.format(k.info['unit_name'],
|
||||||
|
cmd, code))
|
||||||
if code != 0:
|
if code != 0:
|
||||||
return "command `{}` returned {}".format(cmd, str(code))
|
return "command `{}` returned {}".format(cmd, str(code))
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user