1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00

fix(gitops): load correct auth creds [EE-4849] (#8550)

close [EE-4849]
This commit is contained in:
Chaim Lev-Ari 2023-02-28 17:55:54 +02:00 committed by GitHub
parent b98c71f1ab
commit b3e72ecaa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 };
}