summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
72ef84f)
Change-Id: I86d20548bcdcc876b27e3e57c69a347c91aa9825
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
while nb_tries < 360:
db_vnfr = self.db.get_one("vnfrs", {"_id": vnfr_id})
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"):
if not kdur:
raise LcmException("Not found vnfr_id={}, kdu_name={}".format(vnfr_id, kdu_name))
if kdur.get("status"):