ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adorosz...@apache.org
Subject ambari git commit: AMBARI-21478. Wrong string quoting in get_stack_version
Date Sat, 15 Jul 2017 18:55:08 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f072dd215 -> 56462b222


AMBARI-21478. Wrong string quoting in get_stack_version


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

Branch: refs/heads/trunk
Commit: 56462b222f528fd076e64da608d67ea39dab4580
Parents: f072dd2
Author: Attila Doroszlai <adoroszlai@hortonworks.com>
Authored: Fri Jul 14 18:13:22 2017 +0200
Committer: Attila Doroszlai <adoroszlai@hortonworks.com>
Committed: Sat Jul 15 20:54:32 2017 +0200

----------------------------------------------------------------------
 .../resource_management/libraries/functions/get_stack_version.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/56462b22/ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
b/ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
index 463d61f..49416af 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/get_stack_version.py
@@ -68,7 +68,7 @@ def get_stack_version(package_name):
   stack_selector_path = stack_tools.get_stack_tool_path(stack_tools.STACK_SELECTOR_NAME)
 
   if not os.path.exists(stack_selector_path):
-    Logger.info('Skipping get_stack_version since " + stack_selector_tool + " is not yet
available')
+    Logger.info('Skipping get_stack_version since ' + stack_selector_path + ' is not yet
available')
     return None # lazy fail
   
   try:
@@ -77,7 +77,7 @@ def get_stack_version(package_name):
     return_code, stack_output = shell.call(command, timeout=20)
   except Exception, e:
     Logger.error(str(e))
-    raise Fail('Unable to execute " + stack_selector_path + " command to retrieve the version.')
+    raise Fail('Unable to execute ' + stack_selector_path + ' command to retrieve the version.')
 
   if return_code != 0:
     raise Fail(


Mime
View raw message