From f08d8cb5b96d7824288a78d7a3038ac1859a7682 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 28 Apr 2015 13:39:30 -0400 Subject: [PATCH] consider a password specified if it equals '' --- awx/main/models/unified_jobs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index 0a34e18bca..f74d6f8622 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -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'])