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
1 changed files with 2 additions and 1 deletions

View File

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