summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-08-19 15:51:13 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-08-24 09:04:19 -0400
commita00836cfdb7ee7237052124b772cf1b5094c0711 (patch)
tree0a3641fd7233980df67d2582835f9f9ae283ccbc
parented5ec6907fa805c4dfde714c8cdd7748d15f56ca (diff)
downloadopenshift-a00836cfdb7ee7237052124b772cf1b5094c0711.tar.gz
openshift-a00836cfdb7ee7237052124b772cf1b5094c0711.tar.bz2
openshift-a00836cfdb7ee7237052124b772cf1b5094c0711.tar.xz
openshift-a00836cfdb7ee7237052124b772cf1b5094c0711.zip
a-o-i: Add variant and variant_version to migration
Update to also move over variant and variant_version during v1 migration
-rw-r--r--utils/src/ooinstall/oo_config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index f2990662e..2ce2adc06 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -237,6 +237,12 @@ for information on creating a configuration file or delete {} and re-run the ins
if config.get('ansible_ssh_user', False):
new_config_data['deployment']['ansible_ssh_user'] = config['ansible_ssh_user']
+ if config.get('variant', False):
+ new_config_data['variant'] = config['variant']
+
+ if config.get('variant_version', False):
+ new_config_data['variant_version'] = config['variant_version']
+
for host in config['hosts']:
host_props = {}
host_props['roles'] = []