From 4de3cb7040a20ef78db1be2288ef01350fa93683 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Fri, 18 Sep 2015 15:01:39 -0700 Subject: [PATCH] command/monitor: dump info regardless of initial status --- command/monitor.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/command/monitor.go b/command/monitor.go index ea9b814b7..d0d1d30ac 100644 --- a/command/monitor.go +++ b/command/monitor.go @@ -162,19 +162,6 @@ func (m *monitor) update(eval *api.Evaluation, allocs []*api.AllocationListStub) // success or failure ONLY. It is no indication of the outcome of // the evaluation, since conflating these values obscures things. func (m *monitor) monitor(evalID string) int { - // Check if the eval has already completed and fast-path it. - eval, _, err := m.client.Evaluations().Info(evalID, nil) - if err != nil { - m.ui.Error(fmt.Sprintf("Error reading evaluation: %s", err)) - return 1 - } - switch eval.Status { - case structs.EvalStatusComplete, structs.EvalStatusFailed: - m.ui.Info(fmt.Sprintf("Evaluation %q finished with status %q", - evalID, eval.Status)) - return 0 - } - m.ui.Info(fmt.Sprintf("Monitoring evaluation %q", evalID)) for { // Query the evaluation