From 103e9e7fc15154cda0ac6ca14f7580ec3c2ac746 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Mon, 9 Feb 2015 09:59:21 -0800 Subject: [PATCH] agent: clarify the valid characters for dns --- command/agent/agent.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/command/agent/agent.go b/command/agent/agent.go index e6219a1b83..c2394b9a30 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -604,14 +604,16 @@ func (a *Agent) AddService(service *structs.NodeService, chkTypes CheckTypes, pe // Warn if the service name is incompatible with DNS if !dnsNameRe.MatchString(service.Service) { a.logger.Printf("[WARN] Service name %q will not be discoverable "+ - "via DNS due to invalid characters", service.Service) + "via DNS due to invalid characters. Valid characters include "+ + "all alpha-numerics and dashes.", service.Service) } // Warn if any tags are incompatible with DNS for _, tag := range service.Tags { if !dnsNameRe.MatchString(tag) { a.logger.Printf("[WARN] Service tag %q will not be discoverable "+ - "via DNS due to invalid characters", tag) + "via DNS due to invalid characters. Valid characters include "+ + "all alpha-numerics and dashes.", tag) } }