From 2c0e17a69f3b1b18fe6642aa4c435e1ce4839ed2 Mon Sep 17 00:00:00 2001 From: Johan Marcusson Date: Wed, 11 Dec 2024 10:39:09 +0100 Subject: [PATCH] don't just send sync event, set peer as unsync also --- src/cnaas_nms/db/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cnaas_nms/db/git.py b/src/cnaas_nms/db/git.py index 124c47e7..6a054a16 100644 --- a/src/cnaas_nms/db/git.py +++ b/src/cnaas_nms/db/git.py @@ -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) else: logger.warn("Settings updated for unknown device: {}".format(hostname))