Removes filter param from osm-common function calls 61/6661/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Tue, 9 Oct 2018 14:38:51 +0000 (11:38 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Tue, 9 Oct 2018 14:38:51 +0000 (11:38 -0300)
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 <bdiaz@whitestack.com>
osm_mon/core/message_bus/common_consumer.py

index 95b4c0d..df3133d 100755 (executable)
@@ -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):