Skip to content

Commit

Permalink
Merge pull request #4644 from mmaslankaprv/fix-rpk-instance-id-printing
Browse files Browse the repository at this point in the history
Fixed printing group instance id in `rpk group describe`
  • Loading branch information
twmb committed May 10, 2022
2 parents dc3fd67 + e38d8c6 commit 2e38518
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/go/rpk/pkg/cli/cmd/group/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ func printDescribedGroup(
headers = append(headers, "INSTANCE-ID")
orig := args
args = func(r *describeRow) []interface{} {
return append(orig(r), r.instanceID)
if r.instanceID != nil {
return append(orig(r), *r.instanceID)
}
return append(orig(r), "")
}
}

Expand Down

0 comments on commit 2e38518

Please sign in to comment.