{{ range $index, $instance := service "[[ .instance ]]-transport[[ .consul.suffix ]]" }} {{- if not (eq (env "NOMAD_ALLOC_INDEX") (index $instance.ServiceMeta "alloc")) }} {{ .Address }}:{{ .Port }} {{- end }} {{- end }}