ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject git commit: AMBARI-4328. Storm fails deploy with quoted hosts string (aonishuk)
Date Fri, 17 Jan 2014 10:49:58 GMT
Updated Branches:
  refs/heads/trunk db379b16e -> 207f4bc6f


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/207f4bc6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/207f4bc6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/207f4bc6

Branch: refs/heads/trunk
Commit: 207f4bc6f0516e3655c5861d9c3915618a15c8d3
Parents: db379b1
Author: Andrew Onischuk <aonishuk@hortonworks.com>
Authored: Fri Jan 17 02:49:14 2014 -0800
Committer: Andrew Onischuk <aonishuk@hortonworks.com>
Committed: Fri Jan 17 02:49:14 2014 -0800

----------------------------------------------------------------------
 .../HDP/2.0.8/services/STORM/package/scripts/yaml_config.py       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/207f4bc6/ambari-server/src/main/resources/stacks/HDP/2.0.8/services/STORM/package/scripts/yaml_config.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.8/services/STORM/package/scripts/yaml_config.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.8/services/STORM/package/scripts/yaml_config.py
index 9f08493..1f56486 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.8/services/STORM/package/scripts/yaml_config.py
+++ b/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


Mime
View raw message