mirror of https://github.com/portainer/portainer
parent
b98c71f1ab
commit
b3e72ecaa0
|
@ -9,13 +9,6 @@ export function getAuthentication(
|
||||||
| 'RepositoryGitCredentialID'
|
| 'RepositoryGitCredentialID'
|
||||||
>
|
>
|
||||||
) {
|
) {
|
||||||
if (model.RepositoryAuthentication) {
|
|
||||||
return {
|
|
||||||
username: model.RepositoryUsername,
|
|
||||||
password: model.RepositoryPassword,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (model.RepositoryGitCredentialID) {
|
if (model.RepositoryGitCredentialID) {
|
||||||
return { gitCredentialId: model.RepositoryGitCredentialID };
|
return { gitCredentialId: model.RepositoryGitCredentialID };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue