Merge pull request #255 from dgoodwin/issue253

253 - print cmd info when --debug is supplied
This commit is contained in:
Devan Goodwin 2017-01-17 08:40:19 -04:00 committed by GitHub
commit 4d75af103f

View file

@ -413,6 +413,12 @@ def run_command(command, print_on_success=False):
If command fails, print status code and command output.
"""
(status, output) = getstatusoutput(command)
# ISSUE 253 - allow for better debug output
debug("Command: %s" % command)
debug("Status code: %s" % status)
debug("Command output: %s\n" % output)
if status > 0:
msgs = [
"Error running command: %s\n" % command,