You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2014/02/18 17:01:47 UTC
git commit: AMBARI-4713. Nagios and Hive fails,
when password is numberonly (aonishuk)
Repository: ambari
Updated Branches:
refs/heads/trunk 612da80cd -> 8f0fe9c33
AMBARI-4713. Nagios and Hive fails, when password is numberonly
(aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8f0fe9c3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8f0fe9c3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8f0fe9c3
Branch: refs/heads/trunk
Commit: 8f0fe9c339439ad1f035b5f3aef4706f7ec24607
Parents: 612da80
Author: Andrew Onischuk <ao...@hortonworks.com>
Authored: Tue Feb 18 08:00:33 2014 -0800
Committer: Andrew Onischuk <ao...@hortonworks.com>
Committed: Tue Feb 18 08:01:38 2014 -0800
----------------------------------------------------------------------
.../main/python/resource_management/libraries/functions/format.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/8f0fe9c3/ambari-agent/src/main/python/resource_management/libraries/functions/format.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/resource_management/libraries/functions/format.py b/ambari-agent/src/main/python/resource_management/libraries/functions/format.py
index ead0f47..85a638e 100644
--- a/ambari-agent/src/main/python/resource_management/libraries/functions/format.py
+++ b/ambari-agent/src/main/python/resource_management/libraries/functions/format.py
@@ -66,7 +66,7 @@ class ConfigurationFormatter(Formatter):
def _convert_field(self, value, conversion, is_protected):
if conversion == 'e':
- return pipes.quote(value)
+ return pipes.quote(str(value))
elif conversion == 'h':
return "[PROTECTED]" if is_protected else value
elif conversion == 'p':