node eligibility command

This commit is contained in:
Alex Dadgar
2018-02-27 13:54:27 -08:00
committed by Michael Schurter
parent 0fb9ba7732
commit 378c566294
5 changed files with 300 additions and 1 deletions

View File

@@ -269,5 +269,7 @@ func (c *NodeDrainCommand) Run(args []string) int {
c.Ui.Error(fmt.Sprintf("Error updating drain specification: %s", err))
return 1
}
c.Ui.Output(fmt.Sprintf("Node %q drain strategy set", node.ID))
return 0
}