mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
remove if AESCBC overhead
This commit is contained in:
parent
c554c10c5c
commit
9014e8c612
@ -32,9 +32,7 @@ def _credentials(apps):
|
||||
utils.get_current_apps = lambda: apps
|
||||
for credential in apps.get_model('main', 'Credential').objects.all():
|
||||
for field_name, value in credential.inputs.items():
|
||||
if value.startswith('$encrypted$AESCBC$'):
|
||||
continue
|
||||
elif value.startswith('$encrypted$AES$'):
|
||||
if value.startswith('$encrypted$AES$'):
|
||||
value = decrypt_field(credential, field_name)
|
||||
credential.inputs[field_name] = value
|
||||
credential.save()
|
||||
|
Loading…
Reference in New Issue
Block a user