From 1e765d2c6b628a7c54c1aff890f59a78f9f52038 Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Fri, 26 Nov 2021 15:22:36 +0800 Subject: [PATCH] fix placement rules apply check Signed-off-by: iosmanthus --- components/transfer/transfer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/transfer/transfer.go b/components/transfer/transfer.go index b3db1a6..dce10de 100644 --- a/components/transfer/transfer.go +++ b/components/transfer/transfer.go @@ -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) }