From be10a31466eb6a77e9fb224d345b96bd81cb0a92 Mon Sep 17 00:00:00 2001 From: Mohamed Abukar Date: Thu, 4 Jul 2019 09:21:03 +0300 Subject: [PATCH] Update regexp for helm command Change-Id: I591c47d82e0e5e664c7a8898ef0f745adfc91d3a Signed-off-by: Mohamed Abukar --- cmd/appmgr/helm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/appmgr/helm.go b/cmd/appmgr/helm.go index 9e2fde7..5a5c28a 100755 --- a/cmd/appmgr/helm.go +++ b/cmd/appmgr/helm.go @@ -293,7 +293,7 @@ func (h *Helm) FillInstanceData(name string, out string, xapp *Xapp, msgs Messag ip, port := h.GetAddress(out) var tmp string - r := regexp.MustCompile(`(?s)\/Pod.*?\/Service`) + r := regexp.MustCompile(`.*(?s)(Running|Pending|Succeeded|Failed|Unknown).*?\r?\n\r?\n`) result := r.FindStringSubmatch(string(out)) if result == nil { return -- 2.16.6