Skip to content

Commit

Permalink
output more info of node
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Oct 17, 2017
1 parent 5d96643 commit 277891a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions commands/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ func getNode(c *cli.Context) error {
}

log.Infof("Name: %s, Endpoint: %s", node.GetName(), node.GetEndpoint())
for cno, part := range node.GetCpu() {
log.Infof("Cpu %s has %d capability", cno, part)
}
log.Infof("Memory: %d bytes", node.GetMemory())
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 277891a

Please sign in to comment.