From 10cd59bd7eb6f01794ef11aa8a1776fb20ebe8f3 Mon Sep 17 00:00:00 2001 From: Ryan Beisner Date: Sat, 18 Apr 2015 06:29:42 +0000 Subject: [PATCH] add cmd debug output to validate_services c-h amulet utils --- tests/charmhelpers/contrib/amulet/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/charmhelpers/contrib/amulet/utils.py b/tests/charmhelpers/contrib/amulet/utils.py index 5088b1d1..e2d628be 100644 --- a/tests/charmhelpers/contrib/amulet/utils.py +++ b/tests/charmhelpers/contrib/amulet/utils.py @@ -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