IAM: Fix nil panic due to uninit. iamGroupPolicyMap. Fixes #9730 (#9734)

This commit is contained in:
Anton Huck 2020-05-29 15:13:54 +02:00 committed by GitHub
parent 3780ec699f
commit f833e41e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1798,6 +1798,7 @@ func NewIAMSys() *IAMSys {
iamUsersMap: make(map[string]auth.Credentials),
iamPolicyDocsMap: make(map[string]iampolicy.Policy),
iamUserPolicyMap: make(map[string]MappedPolicy),
iamGroupPolicyMap: make(map[string]MappedPolicy),
iamGroupsMap: make(map[string]GroupInfo),
iamUserGroupMemberships: make(map[string]set.StringSet),
}