From: David Garcia Date: Wed, 22 Jul 2020 11:17:56 +0000 (+0200) Subject: Fix bug 1167 X-Git-Tag: v8.0.0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=afb4727d00e13040b01eb1f3be868c75b42b1a51;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,