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:
parent
c554c10c5c
commit
9014e8c612
@ -32,9 +32,7 @@ def _credentials(apps):
|
|||||||
utils.get_current_apps = lambda: apps
|
utils.get_current_apps = lambda: apps
|
||||||
for credential in apps.get_model('main', 'Credential').objects.all():
|
for credential in apps.get_model('main', 'Credential').objects.all():
|
||||||
for field_name, value in credential.inputs.items():
|
for field_name, value in credential.inputs.items():
|
||||||
if value.startswith('$encrypted$AESCBC$'):
|
if value.startswith('$encrypted$AES$'):
|
||||||
continue
|
|
||||||
elif value.startswith('$encrypted$AES$'):
|
|
||||||
value = decrypt_field(credential, field_name)
|
value = decrypt_field(credential, field_name)
|
||||||
credential.inputs[field_name] = value
|
credential.inputs[field_name] = value
|
||||||
credential.save()
|
credential.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user