From a3dd9eb4b7b85470ec9c7c2213f6b5987c572863 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 29 Nov 2017 16:23:07 -0500 Subject: [PATCH] removing some cruft we thought would help us catch bugs (it didn't) --- awx/main/models/unified_jobs.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index 3a90825369..83ac0ac29a 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -342,12 +342,6 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio password_list = self.survey_password_variables() for key in kwargs.get('extra_vars', {}): if key in password_list: - if kwargs['extra_vars'][key] == '$encrypted$': - # If we get into this block, it means there's probably - # a bug in the way we substitute default survey - # passwords; the value we anticipate here is plaintext - # that needs to be encrypted - raise NotImplementedError('extra_var encryption failed (unexpected $encrypted$ value)') kwargs['extra_vars'][key] = encrypt_value( kwargs['extra_vars'][key] )