Merge "Fix KeyError exception upon service/deployment deletion"

This commit is contained in:
Zuul 2017-10-23 14:29:23 +00:00 committed by Gerrit Code Review
commit 234197712b

View File

@ -305,7 +305,8 @@ class LoadBalancerHandler(k8s_base.ResourceEventHandler):
continue continue
except KeyError: except KeyError:
continue continue
if not pool_by_tgt_name:
continue
for subset_port in subset_ports: for subset_port in subset_ports:
target_port = subset_port['port'] target_port = subset_port['port']
if (target_ip, target_port) in current_targets: if (target_ip, target_port) in current_targets: