mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 12:57:40 -02:30
use credential input access methods in projects.py
This commit is contained in:
@@ -166,8 +166,8 @@ class ProjectOptions(models.Model):
|
|||||||
check_special_cases=False)
|
check_special_cases=False)
|
||||||
scm_url_parts = urlparse.urlsplit(scm_url)
|
scm_url_parts = urlparse.urlsplit(scm_url)
|
||||||
# Prefer the username/password in the URL, if provided.
|
# Prefer the username/password in the URL, if provided.
|
||||||
scm_username = scm_url_parts.username or cred.username or ''
|
scm_username = scm_url_parts.username or cred.get_input('username', default='')
|
||||||
if scm_url_parts.password or cred.password:
|
if scm_url_parts.password or cred.has_input('password'):
|
||||||
scm_password = '********'
|
scm_password = '********'
|
||||||
else:
|
else:
|
||||||
scm_password = ''
|
scm_password = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user