1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

fix bug with null credential

This commit is contained in:
AlanCoding 2019-05-08 21:18:16 -04:00
parent 1874e8bb4c
commit 7e6a73f892
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1685,8 +1685,12 @@ class RunProjectUpdate(BaseTask):
for authentication.
'''
extra_vars = {}
if project_update.credential:
scm_username = project_update.credential.get_input('username', default='')
scm_password = project_update.credential.get_input('password', default='')
else:
scm_username = ''
scm_password = ''
scm_type = project_update.scm_type
scm_url = update_scm_url(scm_type, project_update.scm_url,
check_special_cases=False)