From: Benjamin Diaz Date: Tue, 9 Oct 2018 14:38:51 +0000 (-0300) Subject: Removes filter param from osm-common function calls X-Git-Tag: v5.0.0~34 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=cf507461d5f0d7e0121ef734d4ff70d40d6c61ec;p=osm%2FMON.git Removes filter param from osm-common function calls The filter argument was replaced to q_filter. Instead of renaming the keyword arg, now functions are called using only positional args. Signed-off-by: Benjamin Diaz --- diff --git a/osm_mon/core/message_bus/common_consumer.py b/osm_mon/core/message_bus/common_consumer.py index 95b4c0d..df3133d 100755 --- a/osm_mon/core/message_bus/common_consumer.py +++ b/osm_mon/core/message_bus/common_consumer.py @@ -100,8 +100,8 @@ class CommonConsumer: vdu_name) def get_vnfr(self, nsr_id, member_index): - vnfr = self.common_db.get_one(table="vnfrs", - filter={"nsr-id-ref": nsr_id, "member-vnf-index-ref": str(member_index)}) + vnfr = self.common_db.get_one("vnfrs", + {"nsr-id-ref": nsr_id, "member-vnf-index-ref": str(member_index)}) return vnfr def run(self):