diff options
author | Samuel Munilla <smunilla@redhat.com> | 2016-02-23 08:48:00 -0500 |
---|---|---|
committer | Samuel Munilla <smunilla@redhat.com> | 2016-02-23 09:08:11 -0500 |
commit | 5cc71c364963c52eb73b89a7599e422ff42b959f (patch) | |
tree | 5828c3ade7e3db9d1b8e1e9386f271b398954cb8 /utils/src/ooinstall | |
parent | 4a9d7a7c5f75f2bc4099bc7bd06a1d53709ce6af (diff) | |
download | openshift-5cc71c364963c52eb73b89a7599e422ff42b959f.tar.gz openshift-5cc71c364963c52eb73b89a7599e422ff42b959f.tar.bz2 openshift-5cc71c364963c52eb73b89a7599e422ff42b959f.tar.xz openshift-5cc71c364963c52eb73b89a7599e422ff42b959f.zip |
a-o-i: Exception checking around master_lb
Some additional error checking when selecting the master_lb
Diffstat (limited to 'utils/src/ooinstall')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |