From 154442a3a6cb5333a1d9f1a8111977100985f0e7 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 7 May 2012 20:15:02 +1000 Subject: [PATCH] Escape the quotes going into cfn-signal shell command. Signed-off-by: Angus Salkeld --- heat/cfntools/cfn-signal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.45.2