mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
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:
@@ -342,12 +342,6 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
|
|||||||
password_list = self.survey_password_variables()
|
password_list = self.survey_password_variables()
|
||||||
for key in kwargs.get('extra_vars', {}):
|
for key in kwargs.get('extra_vars', {}):
|
||||||
if key in password_list:
|
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] = encrypt_value(
|
||||||
kwargs['extra_vars'][key]
|
kwargs['extra_vars'][key]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user