Explorar o código

a-o-i: Exception checking around master_lb

Some additional error checking when selecting the master_lb
Samuel Munilla %!s(int64=9) %!d(string=hai) anos
pai
achega
5cc71c3649
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/src/ooinstall/cli_installer.py

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

@@ -535,7 +535,7 @@ def get_installed_hosts(hosts, callback_facts):
         lb_hostname = callback_facts[first_master.connect_to]['master'].get('cluster_hostname', '')
         lb_host = next(host for host in hosts if host.connect_to == lb_hostname)
         installed_hosts.append(lb_host)
-    except KeyError:
+    except (KeyError, StopIteration):
         pass