1
0
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:
Chris Meyers 2015-04-28 17:15:48 -04:00
parent f3a644a418
commit 257dc733b9

View File

@ -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'])