From 9014e8c612d0c037fa74e49911b4f25c550e4be5 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 15 Jun 2017 11:19:46 -0400 Subject: [PATCH] remove if AESCBC overhead --- awx/main/migrations/_reencrypt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awx/main/migrations/_reencrypt.py b/awx/main/migrations/_reencrypt.py index 39b00d85e3..20eab67c86 100644 --- a/awx/main/migrations/_reencrypt.py +++ b/awx/main/migrations/_reencrypt.py @@ -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()