]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Pass context when deleting bandwidth limit rule
authorJakub Libosvar <libosvar@redhat.com>
Tue, 21 Jul 2015 11:26:42 +0000 (11:26 +0000)
committerIhar Hrachyshka <ihrachys@redhat.com>
Fri, 24 Jul 2015 07:57:03 +0000 (07:57 +0000)
Context was missing in db_api leading to crashing when creating
transaction.

Change-Id: Ib4355481a51c9c568ab821c45b2c6fe863a594dd

neutron/services/qos/qos_plugin.py

index 0b227c8a382632aecc530b8d0b637f816483476d..94e6c8a5fa8dc3c420ad3ea86b4471f530ee4619 100644 (file)
@@ -170,7 +170,7 @@ class QoSPlugin(qos.QoSPluginBase):
         return rule.to_dict()
 
     def delete_policy_bandwidth_limit_rule(self, context, rule_id, policy_id):
-        rule = rule_object.QosBandwidthLimitRule()
+        rule = rule_object.QosBandwidthLimitRule(context)
         rule.id = rule_id
         rule.delete()