Log curl stderr on non-zero exit status

This helps with debugging signal connectivity issues

Change-Id: I686f832cea0a4b397499824936df18444c7c472c
Closes-Bug: #1273010
This commit is contained in:
Steve Baker 2014-01-27 13:53:28 +13:00
parent 2202cfdd01
commit a6db3e6c0e
1 changed files with 2 additions and 0 deletions

View File

@ -90,4 +90,6 @@ body = {
cmd_str = "curl -X PUT -H \'Content-Type:\' --data-binary \'%s\' \"%s\"" % \
(cfn_helper.json.dumps(body), args.url)
command = cfn_helper.CommandRunner(cmd_str).run()
if command.status != 0:
LOG.error(command.stderr)
sys.exit(command.status)