Selaa lähdekoodia

Merge pull request #2194 from smunilla/persist_roles

a-o-i: Persist Roles Variables
Scott Dodson 8 vuotta sitten
vanhempi
commit
93d54aff8d
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      utils/src/ooinstall/oo_config.py

+ 3 - 0
utils/src/ooinstall/oo_config.py

@@ -315,6 +315,9 @@ class OOConfig(object):
         for host in self.deployment.hosts:
             p_settings['deployment']['hosts'].append(host.to_dict())
 
+        for name, role in self.deployment.roles.iteritems():
+            p_settings['deployment']['roles'][name] = role.variables
+
         try:
             p_settings['variant'] = self.settings['variant']
             p_settings['variant_version'] = self.settings['variant_version']