From: tierno Date: Fri, 9 Oct 2020 12:03:24 +0000 (+0000) Subject: fix 1201 get kdur from vnfr properly X-Git-Tag: v8.0.3~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=61396eee7b81f85d8ff7220e6d234ffe399bf1cb;p=osm%2FLCM.git fix 1201 get kdur from vnfr properly Change-Id: I86d20548bcdcc876b27e3e57c69a347c91aa9825 Signed-off-by: tierno --- 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"):