Explorar el Código

Merge pull request #2541 from smunilla/fix_failed_install_case

a-o-i: Force option should allow reinstall
Scott Dodson hace 8 años
padre
commit
a025229edb
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      utils/src/ooinstall/cli_installer.py

+ 3 - 1
utils/src/ooinstall/cli_installer.py

@@ -751,7 +751,9 @@ def get_hosts_to_run_on(oo_cfg, callback_facts, unattended, force, verbose):
                     hosts_to_run_on.remove(host)
 
         # Handle the cases where we know about uninstalled systems
-        if len(uninstalled_hosts) > 0:
+        # TODO: This logic is getting hard to understand.
+        # we should revise all this to be cleaner.
+        if not force and len(uninstalled_hosts) > 0:
             for uninstalled_host in uninstalled_hosts:
                 click.echo("{} is currently uninstalled".format(uninstalled_host))
             # Fall through