From 7046db881817db817f59617446a514a474eb3b47 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 30 Mar 2018 14:15:12 -0700 Subject: [PATCH] cli: remove unreachable drain message --- api/nodes.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/nodes.go b/api/nodes.go index 7d0e45705..4be661af0 100644 --- a/api/nodes.go +++ b/api/nodes.go @@ -291,10 +291,6 @@ func (n *Nodes) monitorDrainAllocs(ctx context.Context, nodeID string, ignoreSys case migrating && (orig.DesiredStatus != a.DesiredStatus) && a.DesiredStatus == structs.AllocDesiredStatusStop: // Alloc has already been marked for migration and is now being stopped msg = "draining" - - case a.NextAllocation != "" && orig.NextAllocation == "": - // Alloc has been replaced by another allocation - msg = fmt.Sprintf("replaced by allocation %q", a.NextAllocation) } if msg != "" {