From 5cc71c364963c52eb73b89a7599e422ff42b959f Mon Sep 17 00:00:00 2001 From: Samuel Munilla Date: Tue, 23 Feb 2016 08:48:00 -0500 Subject: a-o-i: Exception checking around master_lb Some additional error checking when selecting the master_lb --- utils/src/ooinstall/cli_installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/src') diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index f09f90288..7a97de4e6 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/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 -- cgit v1.2.3