diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-08-19 15:51:13 -0400 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-08-24 09:04:19 -0400 |
commit | a00836cfdb7ee7237052124b772cf1b5094c0711 (patch) | |
tree | 0a3641fd7233980df67d2582835f9f9ae283ccbc /utils/src/ooinstall | |
parent | ed5ec6907fa805c4dfde714c8cdd7748d15f56ca (diff) | |
download | openshift-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
Diffstat (limited to 'utils/src/ooinstall')
-rw-r--r-- | utils/src/ooinstall/oo_config.py | 6 |
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'] = [] |