Browse Source

a-o-i: Double safety check on master_lb

Samuel Munilla 9 years ago
parent
commit
2fa19cdba7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      utils/src/ooinstall/cli_installer.py

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

@@ -540,17 +540,18 @@ def get_installed_hosts(hosts, callback_facts):
     except (KeyError, StopIteration):
         pass
 
-
     for host in hosts:
         if host.connect_to in callback_facts.keys() and is_installed_host(host, callback_facts):
             installed_hosts.append(host)
     return installed_hosts
 
 def is_installed_host(host, callback_facts):
-    return 'common' in callback_facts[host.connect_to].keys() and \
+    version_found = 'common' in callback_facts[host.connect_to].keys() and \
            callback_facts[host.connect_to]['common'].get('version', '') and \
            callback_facts[host.connect_to]['common'].get('version', '') != 'None'
 
+    return version_found or host.master_lb or host.preconfigured
+
 # pylint: disable=too-many-branches
 # This pylint error will be corrected shortly in separate PR.
 def get_hosts_to_run_on(oo_cfg, callback_facts, unattended, force, verbose):