add cmd debug output to validate_services c-h amulet utils

This commit is contained in:
Ryan Beisner 2015-04-18 06:29:42 +00:00
parent 7cc67da545
commit 10cd59bd7e

View File

@ -79,6 +79,8 @@ class AmuletUtils(object):
for k, v in six.iteritems(commands):
for cmd in v:
output, code = k.run(cmd)
self.log.debug('{} `{}` returned {}'.format(k.info['unit_name'],
cmd, code))
if code != 0:
return "command `{}` returned {}".format(cmd, str(code))
return None