From 544ef4444711443a9322b9eb4d69241d28b33f26 Mon Sep 17 00:00:00 2001 From: 36970 Date: Mon, 1 Apr 2024 10:58:42 +0000 Subject: [PATCH] Bug 2365 fixed: Modified time in vnfrs collection of mongo database is not updated, after healing operation Change-Id: I0e188cbb06ee67f8399f5a2d72bb29799b70eb66 Signed-off-by: 36970 --- osm_lcm/ns.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 986d5de..43e699f 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -8079,6 +8079,15 @@ class NsLcm(LcmBase): ) finally: error_list = list() + if db_vnfrs_list and target_list: + for vnfrs in db_vnfrs_list: + for vnf_instance in target_list: + if vnfrs["_id"] == vnf_instance.get("vnfInstanceId"): + self.db.set_list( + "vnfrs", + {"_id": vnfrs["_id"]}, + {"_admin.modified": time()}, + ) if exc: error_list.append(str(exc)) try: -- 2.25.1