Bug 2358 Fix for Alarm Number for Alarm notification is getting started from 0 when... 76/14276/1
author37178 <kosinepalli.s@tataelxsi.co.in>
Tue, 26 Mar 2024 05:32:43 +0000 (05:32 +0000)
committer37178 <kosinepalli.s@tataelxsi.co.in>
Tue, 26 Mar 2024 05:32:43 +0000 (05:32 +0000)
Change-Id: I393ae8e5044126cd3108ecd195131c74ae8ef822
Signed-off-by: 37178 <kosinepalli.s@tataelxsi.co.in>
osm_policy_module/alarming/service.py

index 2ec78cc..d9f5a32 100644 (file)
@@ -273,7 +273,14 @@ class AlarmingService:
                                     status,
                                 )
                                 try:
-                                    if status == "alarm" and alarm.last_action == "ok":
+                                    if (
+                                        status == "alarm"
+                                        and alarm.last_action == "ok"
+                                        or (
+                                            status == "alarm"
+                                            and alarm.last_action == "insufficient-data"
+                                        )
+                                    ):
                                         alarm.id_suffix += 1
                                         alarm.ok_ack = False
                                     if status == "ok" and alarm.last_action == "alarm":