Просмотр исходного кода

AMBARI-15798. Ambari install failing in RHEL7 while trying to install ATS (aonishuk)

Andrew Onishuk 9 лет назад
Родитель
Сommit
d00fc4c6fa

+ 2 - 1
ambari-common/src/main/python/resource_management/libraries/functions/format.py

@@ -50,9 +50,10 @@ class ConfigurationFormatter(Formatter):
       # the environment parameters and add in any locally declared variables to
       # override existing env parameters
       all_params = params.copy()
-      all_params.update(variables)
     else:
       all_params = {}
+      
+    all_params.update(variables)
 
     self.convert_field = self.convert_field_protected
     result_protected = self.vformat(format_string, args, all_params)