mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
fix a bug that can break password prompting in certain scenarios
see: https://github.com/ansible/awx/issues/8202
This commit is contained in:
@@ -4157,7 +4157,10 @@ class JobLaunchSerializer(BaseSerializer):
|
||||
# verify that credentials (either provided or existing) don't
|
||||
# require launch-time passwords that have not been provided
|
||||
if 'credentials' in accepted:
|
||||
launch_credentials = accepted['credentials']
|
||||
launch_credentials = Credential.unique_dict(
|
||||
list(template_credentials.all()) +
|
||||
list(accepted['credentials'])
|
||||
).values()
|
||||
else:
|
||||
launch_credentials = template_credentials
|
||||
passwords = attrs.get('credential_passwords', {}) # get from original attrs
|
||||
|
||||
Reference in New Issue
Block a user