Skip to content

Commit

Permalink
get: fix invalid json output
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorbin committed Apr 22, 2023
1 parent fb07a55 commit 561b366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func getHealthcheckCmd() *cobra.Command {
healthcheck, err := client.GetHealthcheck(ctx, input)
exitIfError(err)
if outputFormat == "json" {
json, err := json.Marshal(healthcheck)
json, err := json.Marshal(&healthcheck)
exitIfError(err)
fmt.Println(string(json))
os.Exit(0)
Expand Down

0 comments on commit 561b366

Please sign in to comment.