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,7 +44,8 @@ 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:
|
||||||
self.isActivityStreamEvent = True
|
if instance not in self.instances:
|
||||||
self.instances.append(instance)
|
self.isActivityStreamEvent = True
|
||||||
|
self.instances.append(instance)
|
||||||
else:
|
else:
|
||||||
self.isActivityStreamEvent = False
|
self.isActivityStreamEvent = False
|
||||||
|
Loading…
Reference in New Issue
Block a user