You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/07/24 15:26:42 UTC
[16/50] [abbrv] ambari git commit: AMBARI-21478. Wrong string quoting
in get_stack_version
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/branch-feature-AMBARI-12556
Commit: 56462b222f528fd076e64da608d67ea39dab4580
Parents: f072dd2
Author: Attila Doroszlai <ad...@hortonworks.com>
Authored: Fri Jul 14 18:13:22 2017 +0200
Committer: Attila Doroszlai <ad...@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(