mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
ensure credentials exist before we go looking at them
This commit is contained in:
parent
f08d8cb5b9
commit
9e67169cb9
@ -1777,7 +1777,7 @@ class JobLaunchSerializer(BaseSerializer):
|
||||
|
||||
credential = attrs.get('credential', None) or obj.credential
|
||||
# fill passwords dict with request data passwords
|
||||
if credential.passwords_needed:
|
||||
if credential and credential.passwords_needed:
|
||||
try:
|
||||
for p in credential.passwords_needed:
|
||||
passwords[p] = data[p]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user