fix list cluster

This commit is contained in:
Victor Vieux 2014-11-20 23:59:53 +00:00
parent 80cc51c9be
commit a64cf5821c
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ func main() {
Usage: "list nodes in a cluster",
Flags: []cli.Flag{flToken},
Action: func(c *cli.Context) {
if c.String("token") == "" {
log.Fatal("--token required to list a cluster")
}
nodes, err := discovery.FetchSlaves(c.String("token"))
if err != nil {
log.Fatal(err)