Commit 654f0de9 authored by Jens Langhammer's avatar Jens Langhammer

Correctly check for not-found service

parent 846d7ae4
......@@ -70,7 +70,7 @@ func (k8sc *KubernetesContext) WebClusterIP() (string, error) {
k8sc.Logger.Warning(err)
return "", err
}
if services.Size() < 1 {
if len(services.Items) < 1 {
err := errors.New("No Service found")
k8sc.Logger.Warning(err)
return "", err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment