mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -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:
@@ -768,7 +768,9 @@ class RunProjectUpdate(BaseTask):
|
|||||||
'''
|
'''
|
||||||
private_data = {}
|
private_data = {}
|
||||||
if project_update.credential:
|
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
|
return private_data
|
||||||
|
|
||||||
def build_passwords(self, project_update, **kwargs):
|
def build_passwords(self, project_update, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user