projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes the collection of cpu metric in some openstack versions
[osm/MON.git]
/
osm_mon
/
core
/
common_db.py
diff --git
a/osm_mon/core/common_db.py
b/osm_mon/core/common_db.py
index
e43c6cd
..
ce44d4d
100644
(file)
--- 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
{"_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):
return vnfd
def get_vnfd_by_name(self, vnfd_name: str):