mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 05:15:02 -02:30
Fix should_decrypt_field to work with non-str fields (return False)
This commit is contained in:
@@ -102,4 +102,6 @@ def encrypt_field(instance, field_name, ask=False, subfield=None, skip_utf8=Fals
|
|||||||
|
|
||||||
|
|
||||||
def should_decrypt_field(value):
|
def should_decrypt_field(value):
|
||||||
return value.startswith('$encrypted$') and '$AESCBC$' not in value
|
if hasattr(value, 'startswith'):
|
||||||
|
return value.startswith('$encrypted$') and '$AESCBC$' not in value
|
||||||
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user