From ada17ad1e60cdd63a8221fdc137a7debdc0e7655 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Thu, 22 Aug 2019 12:19:00 +0200 Subject: [PATCH] Fix portforward error check --- cmd/fluxctl/portforward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fluxctl/portforward.go b/cmd/fluxctl/portforward.go index 3b3d2db3b..207a04764 100644 --- a/cmd/fluxctl/portforward.go +++ b/cmd/fluxctl/portforward.go @@ -21,7 +21,7 @@ func tryPortforwards(ns string, selectors ...metav1.LabelSelector) (p *portforwa return } - if !strings.Contains(err.Error(), "Could not find pod for selector") { + if !strings.Contains(err.Error(), "Could not find running pod for selector") { return } else { message = fmt.Sprintf("%s\n %s", message, metav1.FormatLabelSelector(&selector))