From 6f1128245158d70019bb1471f1c2d5d352b5f1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 10 Mar 2022 18:41:54 +0100 Subject: [PATCH] jira: fix incorrect client creation reusing the same credential --- bridge/jira/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/jira/export.go b/bridge/jira/export.go index 34f41d097d5ede2169af182003afdfd8e50c986d..e5c1907417bc9fcb09f61674eac0d8fea2756248 100644 --- a/bridge/jira/export.go +++ b/bridge/jira/export.go @@ -110,7 +110,7 @@ func (je *jiraExporter) cacheAllClient(ctx context.Context, repo *cache.RepoCach } if _, ok := je.identityClient[user.Id()]; !ok { - client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], creds[0]) + client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], cred) if err != nil { return err }