summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-07-21 10:38:11 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-07-21 14:28:12 -0400
commit5d26300531d14479d3771967029afe7baa4e517a (patch)
tree5c7cbbe8bf5bea03482663cf07bc60e004182c63 /utils
parenta355349a98cecec1d10e7d166aa70d8e77df20e1 (diff)
downloadopenshift-5d26300531d14479d3771967029afe7baa4e517a.tar.gz
openshift-5d26300531d14479d3771967029afe7baa4e517a.tar.bz2
openshift-5d26300531d14479d3771967029afe7baa4e517a.tar.xz
openshift-5d26300531d14479d3771967029afe7baa4e517a.zip
a-o-i: Persist Roles Variables
Previously, we we're saving the roles variables set during a run.
Diffstat (limited to 'utils')
-rw-r--r--utils/src/ooinstall/oo_config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index cfea44b62..fc06a0c4a 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/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']