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:
parent
2202cfdd01
commit
a6db3e6c0e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue