Ver Fonte

AMBARI-4328. Storm fails deploy with quoted hosts string (aonishuk)

Andrew Onischuk há 11 anos atrás
pai
commit
207f4bc6f0

+ 1 - 2
ambari-server/src/main/resources/stacks/HDP/2.0.8/services/STORM/package/scripts/yaml_config.py

@@ -23,10 +23,9 @@ def escape_yaml_propetry(value):
     unquouted = True
   except ValueError:
     pass
-
-  value = value.replace("'","''")
   
   if not unquouted:
+    value = value.replace("'","''")
     value = "'"+value+"'"
     
   return value