mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
consider a password specified if it equals ''
This commit is contained in:
parent
d77801353f
commit
f08d8cb5b9
@ -764,9 +764,9 @@ 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()
|
||||
opts = dict([(field, kwargs.get(field, '')) for field in needed])
|
||||
if not all(opts.values()):
|
||||
return False
|
||||
for field in needed:
|
||||
if field not in kwargs:
|
||||
return False
|
||||
if 'extra_vars' in kwargs:
|
||||
self.handle_extra_data(kwargs['extra_vars'])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user