From 84ebb751f36f724b6ddd7d9925e43534b2420ab2 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Wed, 22 Jul 2020 13:17:56 +0200 Subject: [PATCH] Fix bug 1167 Change-Id: Id0ea5f19d57d2214219eec8f59f13a378d61c870 Signed-off-by: David Garcia --- n2vc/kubectl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.25.1