From: Angus Salkeld Date: Mon, 7 May 2012 10:15:02 +0000 (+1000) Subject: Escape the quotes going into cfn-signal shell command. X-Git-Tag: 2014.1~1870 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=154442a3a6cb5333a1d9f1a8111977100985f0e7;p=openstack-build%2Fheat-build.git Escape the quotes going into cfn-signal shell command. Signed-off-by: Angus Salkeld --- diff --git a/heat/cfntools/cfn-signal b/heat/cfntools/cfn-signal index c3e80ffd..aa68ac1e 100755 --- a/heat/cfntools/cfn-signal +++ b/heat/cfntools/cfn-signal @@ -86,5 +86,6 @@ body = { "Data" : args.data } -cmd_str = "curl -X PUT -H 'Content-Type:' --data-binary '%s' %s" % (json.dumps(body), args.url) +cmd_str = "curl -X PUT -H \'Content-Type:\' --data-binary \'%s\' %s" % \ + (json.dumps(body), args.url) CommandRunner(cmd_str).run()