mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -03:30
do not server error if this value is None
This commit is contained in:
@@ -839,6 +839,6 @@ class OAuth2ClientSecretField(models.CharField):
|
||||
)
|
||||
|
||||
def from_db_value(self, value, expression, connection, context):
|
||||
if value.startswith('$encrypted$'):
|
||||
if value and value.startswith('$encrypted$'):
|
||||
return decrypt_value(get_encryption_key('value', pk=None), value)
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user