Skip to content

Commit

Permalink
fix placement rules apply check
Browse files Browse the repository at this point in the history
Signed-off-by: iosmanthus <[email protected]>
  • Loading branch information
iosmanthus committed Nov 26, 2021
1 parent 31e165e commit 1e765d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/transfer/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (a Action) apply(ctx context.Context) error {
return err
}

if !strings.HasPrefix(output, "\"Update group and rules successfully.\"") {
if !strings.Contains(output, "\"Update group and rules successfully.\"") {
return fmt.Errorf("fail to apply placement rules: %s", output)
}

Expand Down

0 comments on commit 1e765d2

Please sign in to comment.