Merge pull request #4136 from hashicorp/f-eval-status-show-waituntil

Show wait until value in eval status if it is set
This commit is contained in:
Preetha 2018-04-11 14:49:29 -05:00 committed by GitHub
commit eeb065cb21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,6 +217,11 @@ func (c *EvalStatusCommand) Run(args []string) int {
fmt.Sprintf("Priority|%d", eval.Priority),
fmt.Sprintf("Placement Failures|%s", failureString))
if !eval.WaitUntil.IsZero() {
basic = append(basic,
fmt.Sprintf("Wait Until|%s", formatTime(eval.WaitUntil)))
}
if verbose {
// NextEval, PreviousEval, BlockedEval
basic = append(basic,