From: David Garcia Date: Wed, 22 Jul 2020 11:17:56 +0000 (+0200) Subject: Fix bug 1167 X-Git-Tag: release-v9.0-start~30 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F9610%2F1;p=osm%2FN2VC.git Fix bug 1167 Change-Id: Id0ea5f19d57d2214219eec8f59f13a378d61c870 Signed-off-by: David Garcia --- diff --git a/n2vc/kubectl.py b/n2vc/kubectl.py index 9d4ce57..61b2dc3 100644 --- a/n2vc/kubectl.py +++ b/n2vc/kubectl.py @@ -46,7 +46,9 @@ class Kubectl: "target_port": p.target_port, } for p in i.spec.ports - ], + ] + if i.spec.ports + else [], "external_ip": [i.ip for i in i.status.load_balancer.ingress] if i.status.load_balancer.ingress else None,