mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Revert "consider a password specified if it equals ''"
This reverts commit 22987c4a122c5f784be62a0951ffd3081e8d2f12.
This commit is contained in:
parent
f3a644a418
commit
257dc733b9
@ -764,8 +764,8 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
# Get any passwords or other data that are prerequisites to running
|
||||
# the job.
|
||||
needed = self.get_passwords_needed_to_start()
|
||||
for field in needed:
|
||||
if field not in kwargs:
|
||||
opts = dict([(field, kwargs.get(field, '')) for field in needed])
|
||||
if not all(opts.values()):
|
||||
return False
|
||||
if 'extra_vars' in kwargs:
|
||||
self.handle_extra_data(kwargs['extra_vars'])
|
||||
|
Loading…
Reference in New Issue
Block a user