summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-21 16:11:20 -0400
committerGitHub <noreply@github.com>2016-07-21 16:11:20 -0400
commit93d54aff8d99dd00b29cb83a3f9e5b9ae7291043 (patch)
treec1fcb32cd14c723a59f0f066ddcdf0b74e4c985c /utils
parent4507beb2d4f4709583b3cba3eec7c5b57163e9bc (diff)
parent5d26300531d14479d3771967029afe7baa4e517a (diff)
downloadopenshift-93d54aff8d99dd00b29cb83a3f9e5b9ae7291043.tar.gz
openshift-93d54aff8d99dd00b29cb83a3f9e5b9ae7291043.tar.bz2
openshift-93d54aff8d99dd00b29cb83a3f9e5b9ae7291043.tar.xz
openshift-93d54aff8d99dd00b29cb83a3f9e5b9ae7291043.zip
Merge pull request #2194 from smunilla/persist_roles
a-o-i: Persist Roles Variables
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']