skip config/history/ during IAM load (#14698)

This commit is contained in:
Harshavardhana 2022-04-05 19:00:59 -07:00 committed by GitHub
parent dedf9774c7
commit 00ebea2536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,7 @@ func (iamOS *IAMObjectStore) listAllIAMConfigItems(ctx context.Context) (map[str
}
}
if !found && !(item.Item == "config/config.json" || item.Item == "/format.json") {
if !found && !(item.Item == "config/config.json" || item.Item == "/format.json" || contains(item.Item, "config/history/")) {
logger.LogIf(ctx, fmt.Errorf("unknown type of IAM file listed: %v", item.Item))
}
}