From: Mohamed Abukar Date: Thu, 4 Jul 2019 06:21:03 +0000 (+0300) Subject: Update regexp for helm command X-Git-Tag: v0.2.0~9 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=be10a31466eb6a77e9fb224d345b96bd81cb0a92;p=ric-plt%2Fappmgr.git Update regexp for helm command Change-Id: I591c47d82e0e5e664c7a8898ef0f745adfc91d3a Signed-off-by: Mohamed Abukar --- 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