From 96785edd9a6eca327567262b63966030371fea9f Mon Sep 17 00:00:00 2001 From: Shawn Cook Date: Tue, 18 Aug 2015 14:03:48 -0700 Subject: [PATCH] Add EnableTagDrift logic to command/agent/local.go --- command/agent/local.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/agent/local.go b/command/agent/local.go index 1ba9cbedc5..483bdd668a 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -379,7 +379,12 @@ func (l *localState) setSyncState() error { } // If our definition is different, we need to update it - l.logger.Printf("[ERR] services: %v", service) + if existing.EnableTagDrift { + l.logger.Printf("[DEBUG] Tag drift enabled.") + existing.Tags = service.Tags + } else { + l.logger.Printf("[DEBUG] Tag drift disabled.") + } equal := reflect.DeepEqual(existing, service) l.serviceStatus[id] = syncStatus{inSync: equal} }