mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
autoconf - disable event filtering
This commit is contained in:
parent
4f0790a7e2
commit
e5ba468d40
1 changed files with 3 additions and 1 deletions
|
|
@ -114,7 +114,9 @@ class SwarmController(Controller):
|
|||
)
|
||||
|
||||
def __process_event(self, event):
|
||||
return "Actor" in event and "Attributes" in event["Actor"] and "Spec" in event["Actor"]["Attributes"] and "Labels" in event["Actor"]["Attributes"]["Spec"] and ("bunkerweb.INSTANCE" in event["Actor"]["Attributes"]["Spec"]["Labels"] or "bunkerweb.CONFIG_TYPE" in event["Actor"]["Attributes"]["Spec"]["Labels"])
|
||||
# TODO : dynamicaly retrieve labels from object ID
|
||||
return True
|
||||
#return "Actor" in event and "Attributes" in event["Actor"] and "Spec" in event["Actor"]["Attributes"] and "Labels" in event["Actor"]["Attributes"]["Spec"] and ("bunkerweb.INSTANCE" in event["Actor"]["Attributes"]["Spec"]["Labels"] or "bunkerweb.CONFIG_TYPE" in event["Actor"]["Attributes"]["Spec"]["Labels"])
|
||||
|
||||
def __event(self, event_type):
|
||||
while True:
|
||||
|
|
|
|||
Loading…
Reference in a new issue