mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #158 from chrismeyersfsu/fix-credential_file
return empty private data content rather than None for generate private ...
This commit is contained in:
commit
f7355ae5f3
@ -768,7 +768,9 @@ class RunProjectUpdate(BaseTask):
|
||||
'''
|
||||
private_data = {}
|
||||
if project_update.credential:
|
||||
private_data['scm_credential'] = decrypt_field(project_update.credential, 'ssh_key_data') or None
|
||||
credential = project_update.credential
|
||||
if credential.ssh_key_data not in (None, ''):
|
||||
private_data['scm_credential'] = decrypt_field(project_update.credential, 'ssh_key_data')
|
||||
return private_data
|
||||
|
||||
def build_passwords(self, project_update, **kwargs):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user