diff --git a/command/agent/config.go b/command/agent/config.go index ad8a8b8754..a2e83740b9 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -186,6 +186,14 @@ func DecodeServiceDefinition(raw interface{}) (*ServiceDefinition, error) { if !ok { goto AFTER_FIX } + + // If no 'tags', handle the deprecated 'tag' value. + if _, ok := rawMap["tags"]; !ok { + if tag, ok := rawMap["tag"]; ok { + rawMap["tags"] = []interface{}{tag} + } + } + sub, ok = rawMap["check"] if !ok { goto AFTER_FIX