Skip to content

Commit

Permalink
command: use 0 as index for monitor request
Browse files Browse the repository at this point in the history
  • Loading branch information
nickethier committed May 8, 2018
1 parent 59db0cb commit 6334619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/node_drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (c *NodeDrainCommand) Run(args []string) int {
// If monitoring the drain start the montior and return when done
if monitor {
c.Ui.Info(fmt.Sprintf("%s: Monitoring node %q: Ctrl-C to detach monitoring", formatTime(time.Now()), node.ID))
c.monitorDrain(client, context.Background(), node, node.ModifyIndex-1, ignoreSystem)
c.monitorDrain(client, context.Background(), node, 0, ignoreSystem)
return 0
}

Expand Down

0 comments on commit 6334619

Please sign in to comment.