mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Merge pull request #1791 from ryanpetrello/censor-deleted-token
censor OAuth tokens from activity stream deletion records
This commit is contained in:
commit
7481d671ff
@ -494,6 +494,8 @@ def activity_stream_delete(sender, instance, **kwargs):
|
||||
return
|
||||
changes = model_to_dict(instance)
|
||||
object1 = camelcase_to_underscore(instance.__class__.__name__)
|
||||
if type(instance) == OAuth2AccessToken:
|
||||
changes['token'] = TOKEN_CENSOR
|
||||
activity_entry = ActivityStream(
|
||||
operation='delete',
|
||||
changes=json.dumps(changes),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user