Skip to content

Commit

Permalink
🧹 do not show owner of config if no config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Sep 28, 2023
1 parent 1f1fadb commit ca5a444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/cnquery/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca5a444

Please sign in to comment.