Skip to content

Commit

Permalink
don't just send sync event, set peer as unsync also
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed Dec 11, 2024
1 parent b0021ae commit 2c0e17a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cnaas_nms/db/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def _refresh_repo_task_settings(job_id: Optional[int] = None) -> str:
add_sync_event(hostname, "refresh_settings", ret, job_id)
peer_device = get_peer_with_mirror_interfaces(session, dev)
if peer_device:
peer_device.synchronized = False
add_sync_event(peer_device.hostname, "refresh_settings", ret, job_id)

Check warning on line 266 in src/cnaas_nms/db/git.py

View check run for this annotation

Codecov / codecov/patch

src/cnaas_nms/db/git.py#L263-L266

Added lines #L263 - L266 were not covered by tests
else:
logger.warn("Settings updated for unknown device: {}".format(hostname))
Expand Down

0 comments on commit 2c0e17a

Please sign in to comment.