Add debug logging to SSHCase

This commit is contained in:
Erik Johnson 2017-12-18 15:24:39 -06:00
parent fa66e54dd6
commit 15296e59a5
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -824,6 +824,8 @@ class SSHCase(ShellCase):
'''
ret = self.run_ssh(self._arg_str(function, arg), timeout=timeout,
wipe=wipe, raw=raw)
log.debug('SSHCase run_function executed %s with arg %s', function, arg)
log.debug('SSHCase JSON return: %s', ret)
try:
return json.loads(ret)['localhost']
except Exception: