소스 검색

Merge pull request #2541 from smunilla/fix_failed_install_case

a-o-i: Force option should allow reinstall
Scott Dodson 8 년 전
부모
커밋
a025229edb
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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