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

This commit is contained in:
Harshavardhana 2022-04-06 21:03:36 -07:00
parent 901d33b59c
commit a9eef521ec

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" || 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))
}
}