From 8dfd1f03e9798f8134e7a7007315f17189708d55 Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Mon, 8 Nov 2021 12:55:27 -0800 Subject: [PATCH] fix: IAM initialization crash with etcd store (#13612) --- cmd/iam-etcd-store.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/iam-etcd-store.go b/cmd/iam-etcd-store.go index ff79bd799..9879e194d 100644 --- a/cmd/iam-etcd-store.go +++ b/cmd/iam-etcd-store.go @@ -70,7 +70,11 @@ type IAMEtcdStore struct { } func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore { - return &IAMEtcdStore{client: client, usersSysType: usersSysType} + return &IAMEtcdStore{ + iamCache: newIamCache(), + client: client, + usersSysType: usersSysType, + } } func (ies *IAMEtcdStore) rlock() *iamCache {