forked from toolshed/abra
fix: correct append service name logic in Filters function (!396)
This fixes a regression introduced by #395 Reviewed-on: coop-cloud/abra#396 Co-authored-by: p4u1 <p4u1_f4u1@riseup.net> Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
This commit is contained in:
@ -95,7 +95,9 @@ func (a App) Filters(appendServiceNames, exactMatch bool, services ...string) (f
|
||||
return filters, nil
|
||||
}
|
||||
|
||||
if appendServiceNames {
|
||||
// When not appending the service name, just add one filter for the whole
|
||||
// stack.
|
||||
if !appendServiceNames {
|
||||
f := fmt.Sprintf("%s", a.StackName())
|
||||
if exactMatch {
|
||||
f = fmt.Sprintf("^%s", f)
|
||||
|
Reference in New Issue
Block a user