From ca5a44431cc93944f7cc764e45e1038ba6ed67b3 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Thu, 28 Sep 2023 13:53:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20do=20not=20show=20owner=20of=20c?= =?UTF-8?q?onfig=20if=20no=20config=20exists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cnquery/cmd/status.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/cnquery/cmd/status.go b/apps/cnquery/cmd/status.go index 6e2418df00..78f512b7d0 100644 --- a/apps/cnquery/cmd/status.go +++ b/apps/cnquery/cmd/status.go @@ -167,7 +167,10 @@ func (s Status) RenderCliStatus() { if len(s.Upstream.Features) > 0 { log.Info().Msg("Features:\t" + strings.Join(s.Upstream.Features, ",")) } - log.Info().Msg("Owner:\t" + s.Client.ParentMrn) + + if s.Client.ParentMrn == "" { + log.Info().Msg("Owner:\t" + s.Client.ParentMrn) + } if s.Client.Registered { log.Info().Msg("Client:\t" + s.Client.Mrn)