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