From 5010e98b8f29e6f491c596a6f54b4325830e6849 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Thu, 17 Jan 2019 19:23:04 -0500 Subject: [PATCH] use credential input access methods in projects.py --- awx/main/models/projects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 7502b81919..33014dfd48 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -166,8 +166,8 @@ class ProjectOptions(models.Model): check_special_cases=False) scm_url_parts = urlparse.urlsplit(scm_url) # Prefer the username/password in the URL, if provided. - scm_username = scm_url_parts.username or cred.username or '' - if scm_url_parts.password or cred.password: + scm_username = scm_url_parts.username or cred.get_input('username', default='') + if scm_url_parts.password or cred.has_input('password'): scm_password = '********' else: scm_password = ''