From 61396eee7b81f85d8ff7220e6d234ffe399bf1cb 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 9683231..dce1887 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