Skip to content

Commit

Permalink
Merge pull request #28 from seatgeek/fix-node-filtering
Browse files Browse the repository at this point in the history
Fix Node filtering
  • Loading branch information
jippi authored Nov 21, 2019
2 parents 2236acb + 2356b8a commit 5c7ca4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion command/node/breakdown_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func BreakdownCLI(c *cli.Context, logger *log.Logger) error {
logger.Fatal("Missing argument for list of fields to use as dimensions")
}

filters := helpers.ClientFilterFromCLI(c)
filters := helpers.ClientFilterFromCLI(c.Parent())

// Collect Node data from the Nomad cluster
nodes, err := getData(filters, logger, !c.BoolT("no-progress"))
Expand Down
2 changes: 1 addition & 1 deletion command/node/discover_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var ignoredNodeAttributes = map[string]interface{}{
}

func DiscoverCLI(c *cli.Context, logger *log.Logger) error {
filters := helpers.ClientFilterFromCLI(c)
filters := helpers.ClientFilterFromCLI(c.Parent())

data, err := discoverData(filters, logger, !c.BoolT("no-progress"))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion command/node/list_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ListCLI(c *cli.Context, logger *log.Logger) error {
fields = input
}

filters := helpers.ClientFilterFromCLI(c)
filters := helpers.ClientFilterFromCLI(c.Parent())

// Collect Node data from the Nomad cluster
nodes, err := getData(filters, logger, !c.BoolT("no-progress"))
Expand Down

0 comments on commit 5c7ca4c

Please sign in to comment.