From 257dc733b9bbefb7597989a4d6fc76b4143e2e34 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 28 Apr 2015 17:15:48 -0400 Subject: [PATCH] Revert "consider a password specified if it equals ''" This reverts commit 22987c4a122c5f784be62a0951ffd3081e8d2f12. --- 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 f74d6f8622..0a34e18bca 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() - for field in needed: - if field not in kwargs: - return False + 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'])