X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcore%2Fcommon_db.py;h=ce44d4ddef5c8865b362079f0132742300dd7c79;hb=refs%2Fchanges%2F68%2F10468%2F1;hp=e43c6cdc8b79b715e087bc519a378d096187dc41;hpb=85a9185db3248f1e3f20c8edad95ab77b8ee989c;p=osm%2FMON.git diff --git a/osm_mon/core/common_db.py b/osm_mon/core/common_db.py index e43c6cd..ce44d4d 100644 --- a/osm_mon/core/common_db.py +++ b/osm_mon/core/common_db.py @@ -62,9 +62,9 @@ class CommonDbClient: {"_id": vnfd_id}) return vnfd - def get_vnfd_by_id(self, vnfd_id: str): - vnfd = self.common_db.get_one("vnfds", - {"id": vnfd_id}) + def get_vnfd_by_id(self, vnfd_id: str, filter: dict = {}): + filter["id"] = vnfd_id + vnfd = self.common_db.get_one("vnfds", filter) return vnfd def get_vnfd_by_name(self, vnfd_name: str):