Correct dynamic properties grpc json serializing
[ccsdk/cds.git] / ms / command-executor / src / main / python / command_executor_handler.py
index a862559..eb39f07 100644 (file)
@@ -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: