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

close [EE-4849]
pull/8499/head^2
Chaim Lev-Ari 2 years ago committed by GitHub
parent b98c71f1ab
commit b3e72ecaa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save