X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=deploy%2Fcommon.py;fp=deploy%2Fcommon.py;h=bc27876173b2f4ae70387e0c268bab9e32249137;hb=220b59b074887c84024964e1b261f35ca0b6f439;hp=ccd43d79a7dbbae430df6114ed1abd0b5e417dfd;hpb=c28e19bd525a29f3542b4338a84a5b0c9771b464;p=fuel.git diff --git a/deploy/common.py b/deploy/common.py index ccd43d79a..bc2787617 100644 --- a/deploy/common.py +++ b/deploy/common.py @@ -49,8 +49,13 @@ def exec_cmd(cmd, check=True): return_code = process.returncode if check: if return_code > 0: + print "Failed command: " + str(cmd) + print "Command returned response: " + str(response) + print "Command return code: " + str(return_code) raise Exception(response) else: + print "Command: " + str(cmd) + print str(response) return response return response, return_code