Skip to content

Commit

Permalink
sks: fix "nodepool evict" arguments parsing issue (#312)
Browse files Browse the repository at this point in the history
This changes fixes a bug in the `exo sks nodepool evict` command
arguments parsing, where an "invalid arguments" error would be returned
in the legitimate case of a single Node passed.
  • Loading branch information
falzm authored Feb 2, 2021
1 parent c123b85 commit 99d754d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sks_nodepool_evict.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Note: Kubernetes Nodes should be drained from their workload prior to being
evicted from their Nodepool, e.g. using "kubectl drain".`,

PreRunE: func(cmd *cobra.Command, args []string) error {
if len(args) <= 3 {
if len(args) < 3 {
cmdExitOnUsageError(cmd, "invalid arguments")
}

Expand Down

0 comments on commit 99d754d

Please sign in to comment.