From a9eef521ec178323409681a4db8dc86cdd030132 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 6 Apr 2022 21:03:36 -0700 Subject: [PATCH] skip config/history/ during IAM load (#14698) --- cmd/iam-object-store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } }