1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

remove if AESCBC overhead

This commit is contained in:
Wayne Witzel III 2017-06-15 11:19:46 -04:00
parent c554c10c5c
commit 9014e8c612

View File

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