Skip to content

Commit c2b75ee

Browse files
author
Gabriel Monroy
committed
fix(unit): match @ units properly
1 parent f6e0b86 commit c2b75ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/unit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (c *FleetClient) getUnits(target string) (units []string, err error) {
2424
var r *regexp.Regexp
2525
if strings.HasSuffix(target, "-data") {
2626
r = regexp.MustCompile(`deis\-(` + target + `)\.service`)
27-
} else if strings.Contains(target, ".") {
27+
} else if strings.Contains(target, "@") {
2828
r = regexp.MustCompile(`deis\-(` + target + `)\.service`)
2929
} else {
3030
r = regexp.MustCompile(`deis\-(` + target + `)@([\d]+)\.service`)

0 commit comments

Comments
 (0)