From 5d26300531d14479d3771967029afe7baa4e517a Mon Sep 17 00:00:00 2001 From: Samuel Munilla Date: Thu, 21 Jul 2016 10:38:11 -0400 Subject: a-o-i: Persist Roles Variables Previously, we we're saving the roles variables set during a run. --- utils/src/ooinstall/oo_config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/src') 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'] -- cgit v1.2.3