]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Escape the quotes going into cfn-signal shell command.
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 7 May 2012 10:15:02 +0000 (20:15 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 7 May 2012 10:15:02 +0000 (20:15 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/cfntools/cfn-signal

index c3e80ffd5b1b4d8f6a30b6b980b57cd889144a2c..aa68ac1ea326a7c60f6b951bd679d48d42e32a99 100755 (executable)
@@ -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()