Browse Source

AMBARI-15376: Fix typo in get_stack_version (jluniya)

Jayush Luniya 9 years ago
parent
commit
7cdb16c1d8

+ 1 - 1
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: