mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
ensure credentials exist before we go looking at them
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user