summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2014-01-27 13:53:28 +1300
committerSteve Baker <sbaker@redhat.com>2014-01-27 13:53:28 +1300
commita6db3e6c0ef61303d797ffdc07b457ebd3cb47e4 (patch)
treeb6dbe18814698506ae3e0d8962fc1506818929d9
parent2202cfdd01750451e2bc2c3f3365c30700bfebea (diff)
downloadheat-cfntools-a6db3e6c0ef61303d797ffdc07b457ebd3cb47e4.tar.gz
Log curl stderr on non-zero exit status
This helps with debugging signal connectivity issues Change-Id: I686f832cea0a4b397499824936df18444c7c472c Closes-Bug: #1273010
-rwxr-xr-xbin/cfn-signal2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/cfn-signal b/bin/cfn-signal
index dbebcaf..9dfbde7 100755
--- a/bin/cfn-signal
+++ b/bin/cfn-signal
@@ -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)