ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlun...@apache.org
Subject ambari git commit: AMBARI-15376: Fix typo in get_stack_version (jluniya)
Date Thu, 10 Mar 2016 20:31:07 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk ac6b0d1fb -> 7cdb16c1d


AMBARI-15376: Fix typo in get_stack_version (jluniya)


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

Branch: refs/heads/trunk
Commit: 7cdb16c1d8e575dc00b71877858abe9d95bdd871
Parents: ac6b0d1
Author: Jayush Luniya <jluniya@hortonworks.com>
Authored: Thu Mar 10 12:31:02 2016 -0800
Committer: Jayush Luniya <jluniya@hortonworks.com>
Committed: Thu Mar 10 12:31:02 2016 -0800

----------------------------------------------------------------------
 .../resource_management/libraries/functions/get_stack_version.py   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7cdb16c1/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 c00b541..f2e6567 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
@@ -81,7 +81,7 @@ def get_stack_version(package_name):
       'Unable to determine the current version because of a non-zero return code of {0}'.format(str(return_code)))
 
   stack_version = re.sub(package_name + ' - ', '', stack_output)
-  stack_version = stack_output.rstrip()
+  stack_version = stack_version.rstrip()
   match = re.match('[0-9]+.[0-9]+.[0-9]+.[0-9]+-[0-9]+', stack_version)
 
   if match is None:


Mime
View raw message