mirror of https://github.com/hashicorp/consul
Use %q, not %s as it used to
parent
2f76019847
commit
7d2e4b77ec
|
@ -1198,7 +1198,7 @@ func (b *Builder) expandAddrs(name string, s *string) []net.Addr {
|
||||||
|
|
||||||
x, err := template.Parse(*s)
|
x, err := template.Parse(*s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %s: %s", name, *s, err))
|
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1237,7 +1237,7 @@ func (b *Builder) expandOptionalAddrs(name string, s *string) []string {
|
||||||
|
|
||||||
x, err := template.Parse(*s)
|
x, err := template.Parse(*s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %s: %s", name, *s, err))
|
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue