summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>2021-11-14 20:44:33 +0200
committerDan Timoney <dtimoney@att.com>2021-12-07 17:09:40 +0000
commit4d3f7e0d9750325d10a381a7f9d2404755fce111 (patch)
treef8894c4dc13bfcd9e9de5d66a5035022533ac79e
parentade09345cca16f38ca5f84a00fda4e9f3783ef04 (diff)
Correct dynamic properties grpc json serializing1.2.2
Correct the json serializing and escaping in command executor for grpc server Issue-ID: CCSDK-3521 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: I5d0c9fbb7190e8de52bf954ef1af29a6f854f685 (cherry picked from commit 04307eb9aff21a9df0510776be6363e9b71a95b8)
-rw-r--r--ms/command-executor/src/main/python/command_executor_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/command-executor/src/main/python/command_executor_handler.py b/ms/command-executor/src/main/python/command_executor_handler.py
index a862559cf..eb39f07a4 100644
--- a/ms/command-executor/src/main/python/command_executor_handler.py
+++ b/ms/command-executor/src/main/python/command_executor_handler.py
@@ -241,7 +241,7 @@ class CommandExecutorHandler():
### if properties are defined we add them to the command
properties = ""
if request.properties is not None and len(request.properties) > 0:
- properties = " " + re.escape(MessageToJson(request.properties))
+ properties = " " + re.escape(MessageToJson(request.properties)).replace('"','\\"')
### TODO: replace with os.environ['VIRTUAL_ENV']?
if "ansible-playbook" in request.command: