mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-17 22:28:38 -05:00
Fix typo and update tests to catch other typos
This commit is contained in:
@@ -15,7 +15,7 @@ def _notification_templates(apps):
|
||||
for nt in NotificationTemplate.objects.all():
|
||||
for field in filter(lambda x: nt.notification_class.init_parameters[x]['type'] == "password",
|
||||
nt.notification_class.init_parameters):
|
||||
if nt.notification_configuration[field].startswith('$encrypted$AESCBC4'):
|
||||
if nt.notification_configuration[field].startswith('$encrypted$AESCBC$'):
|
||||
continue
|
||||
value = decrypt_field(nt, 'notification_configuration', subfield=field)
|
||||
nt.notification_configuration[field] = value
|
||||
|
||||
Reference in New Issue
Block a user