diff --git a/cmd/iam-object-store.go b/cmd/iam-object-store.go index 65db3b776..afff97e81 100644 --- a/cmd/iam-object-store.go +++ b/cmd/iam-object-store.go @@ -448,7 +448,7 @@ func (iamOS *IAMObjectStore) listAllIAMConfigItems(ctx context.Context) (map[str } } - if !found && !(item.Item == "config/config.json" || item.Item == "/format.json" || contains(item.Item, "config/history/")) { + if !found && !(item.Item == "config/config.json" || item.Item == "/format.json" || strings.Contains(item.Item, "config/history/")) { logger.LogIf(ctx, fmt.Errorf("unknown type of IAM file listed: %v", item.Item)) } }