diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-05 12:49:42 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-05 12:51:10 -0500 |
commit | ae7757195a4230b561b14353a7024d964b5d9664 (patch) | |
tree | 05a55080226fc55d2a3b1fe790293aa935f6924c /utils/src | |
parent | dcd2fb0558c58fb79f9e3dd9ecd5f6687d8bed5d (diff) | |
download | openshift-ae7757195a4230b561b14353a7024d964b5d9664.tar.gz openshift-ae7757195a4230b561b14353a7024d964b5d9664.tar.bz2 openshift-ae7757195a4230b561b14353a7024d964b5d9664.tar.xz openshift-ae7757195a4230b561b14353a7024d964b5d9664.zip |
atomic-openshift-installer's unattended mode wasn't work with --force for all cases
Diffstat (limited to 'utils/src')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index e4fda2813..f675efead 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -339,7 +339,10 @@ def get_hosts_to_run_on(oo_cfg, callback_facts, unattended, force): # new nodes. elif host.node: click.echo("{} is already an OpenShift Node".format(host)) - hosts_to_run_on.remove(host) + # force is only used for reinstalls so we don't want to remove + # anything. + if not force: + hosts_to_run_on.remove(host) # for unattended either continue if they force install or exit if they didn't if unattended: if not force: |