From e5d05979d8a2b6c3f1fca316053a997790f3d536 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 9 Oct 2020 12:03:24 +0000 Subject: [PATCH] fix 1201 get kdur from vnfr properly Change-Id: I86d20548bcdcc876b27e3e57c69a347c91aa9825 Signed-off-by: tierno --- osm_lcm/ns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 61ad281..5b06c18 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -1312,7 +1312,7 @@ class NsLcm(LcmBase): while nb_tries < 360: db_vnfr = self.db.get_one("vnfrs", {"_id": vnfr_id}) - kdur = next((x for x in get_iterable(db_vnfr, "kdur") if x.get("name") == kdu_name), None) + kdur = next((x for x in get_iterable(db_vnfr, "kdur") if x.get("kdu-name") == kdu_name), None) if not kdur: raise LcmException("Not found vnfr_id={}, kdu_name={}".format(vnfr_id, kdu_name)) if kdur.get("status"): -- 2.25.1