Skip to content

Commit

Permalink
join sync room if sync key exists with value 'all'
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed Jul 31, 2023
1 parent cdb0f91 commit 2ee0b8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cnaas_nms/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def socketio_on_events(data):
room = data["loglevel"]
elif "update" in data and data["update"] in ["device", "job"]:
room = "update_{}".format(data["update"])
elif "sync" in data and data["sync"] == "all":
room = "sync"

Check warning on line 156 in src/cnaas_nms/api/app.py

View check run for this annotation

Codecov / codecov/patch

src/cnaas_nms/api/app.py#L155-L156

Added lines #L155 - L156 were not covered by tests
else:
return False # TODO: how to send error message to client?

Expand Down

0 comments on commit 2ee0b8b

Please sign in to comment.