Merge pull request #597 from ryanpetrello/jenkins-no-like-unicode

removing some cruft we thought would help us catch bugs (it didn't)
This commit is contained in:
Ryan Petrello 2017-11-29 16:39:20 -05:00 committed by GitHub
commit fc4b02b79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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