Skip to content

Commit

Permalink
feat(cmd/network): Also show node status
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Jun 8, 2023
1 parent 3f7985f commit dce9468
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/network/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ var showCmd = &cobra.Command{
return
}

if node, err := registryConn.GetNode(ctx, idQuery); err == nil {
err = prettyPrint(node)
if nodeStatus, err := registryConn.GetNodeStatus(ctx, idQuery); err == nil {
if node, err := registryConn.GetNode(ctx, idQuery); err == nil {

Check failure on line 92 in cmd/network/show.go

View workflow job for this annotation

GitHub Actions / lint

shadow: declaration of "err" shadows declaration at line 91 (govet)
err = prettyPrint(node)
cobra.CheckErr(err)
}

err = prettyPrint(nodeStatus)
cobra.CheckErr(err)
return
}
Expand Down

0 comments on commit dce9468

Please sign in to comment.