mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
Make sure we check the instance list in the activity stream middleware so we aren't causing a storm of update events trying to attach the request user
This commit is contained in:
parent
002341468d
commit
adf9f40c2e
@ -44,6 +44,7 @@ class ActivityStreamMiddleware(object):
|
|||||||
if isinstance(user, User) and instance.user is None:
|
if isinstance(user, User) and instance.user is None:
|
||||||
instance.user = user
|
instance.user = user
|
||||||
else:
|
else:
|
||||||
|
if instance not in self.instances:
|
||||||
self.isActivityStreamEvent = True
|
self.isActivityStreamEvent = True
|
||||||
self.instances.append(instance)
|
self.instances.append(instance)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user