Explorar o código

a-o-i: Persist Roles Variables

Previously, we we're saving the roles variables set during a run.
Samuel Munilla %!s(int64=8) %!d(string=hai) anos
pai
achega
5d26300531
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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']