From b3e72ecaa0790cc98efc09847ba2430af92c636c Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Tue, 28 Feb 2023 17:55:54 +0200 Subject: [PATCH] fix(gitops): load correct auth creds [EE-4849] (#8550) close [EE-4849] --- app/react/portainer/gitops/utils.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/react/portainer/gitops/utils.ts b/app/react/portainer/gitops/utils.ts index 6c17588b9..676756f55 100644 --- a/app/react/portainer/gitops/utils.ts +++ b/app/react/portainer/gitops/utils.ts @@ -9,13 +9,6 @@ export function getAuthentication( | 'RepositoryGitCredentialID' > ) { - if (model.RepositoryAuthentication) { - return { - username: model.RepositoryUsername, - password: model.RepositoryPassword, - }; - } - if (model.RepositoryGitCredentialID) { return { gitCredentialId: model.RepositoryGitCredentialID }; }