From 0f920bae99406b5b1b9712649759680ea15a0f4b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 12 Dec 2024 09:28:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=A1=E5=8F=B7=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81=E5=86=B2=E7=AA=81=E6=97=B6?= =?UTF-8?q?=E4=BC=98=E5=85=88=E5=A4=84=E7=90=86=E7=9B=91=E6=B5=8B=E8=AE=BE?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/enm/services.py b/apps/enm/services.py index e4f883ea..1a82c00a 100644 --- a/apps/enm/services.py +++ b/apps/enm/services.py @@ -224,9 +224,9 @@ class MpointCache: ep_belong_id = current_cache_val.get("ep_belong") ep_monitored_id = current_cache_val.get("ep_monitored") mpoint_is_rep_ep0_running_state = current_cache_val.get("is_rep_ep0_running_state", False) - if ep_monitored_id and mpoint_is_rep_ep_running_state and ep_belong_id != ep_monitored_id: + if ep_monitored_id and mpoint_is_rep_ep_running_state: set_eq_rs(ep_monitored_id, last_timex, last_mrs) - if ep_belong_id and mpoint_is_rep_ep0_running_state: + if ep_belong_id and mpoint_is_rep_ep0_running_state and ep_belong_id != ep_monitored_id: set_eq_rs(ep_belong_id, last_timex, Equipment.RUNING) mf_code = current_cache_val.get("mpoint_affect")