mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Change error message to use original name for clarity, rather than the name after substituting env vars with placeholder.
This commit is contained in:
@@ -3079,7 +3079,7 @@ func (s *Service) Validate() error {
|
||||
serviceNameStripped := args.ReplaceEnvWithPlaceHolder(s.Name, "ENV-VAR")
|
||||
|
||||
if err := s.ValidateName(serviceNameStripped); err != nil {
|
||||
mErr.Errors = append(mErr.Errors, err)
|
||||
mErr.Errors = append(mErr.Errors, fmt.Errorf("service name must be valid per RFC 1123 and can contain only alphanumeric characters or dashes: %q", s.Name))
|
||||
}
|
||||
|
||||
switch s.AddressMode {
|
||||
|
||||
Reference in New Issue
Block a user