mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
consider a password specified if it equals ''
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()
|
||||||
opts = dict([(field, kwargs.get(field, '')) for field in needed])
|
for field in needed:
|
||||||
if not all(opts.values()):
|
if field not in kwargs:
|
||||||
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