瀏覽代碼

a-o-i: Persist Roles Variables

Previously, we we're saving the roles variables set during a run.
Samuel Munilla 8 年之前
父節點
當前提交
5d26300531
共有 1 個文件被更改,包括 3 次插入0 次删除
  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']