From: Jenkins Date: Tue, 4 Aug 2015 13:49:56 +0000 (+0000) Subject: Merge "Replace to_dict() calls with a function decorator" into feature/qos X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6ec6f0ca16f7bd0aa2e7be1d9e8e8770ceaf6fd6;p=openstack-build%2Fneutron-build.git Merge "Replace to_dict() calls with a function decorator" into feature/qos --- 6ec6f0ca16f7bd0aa2e7be1d9e8e8770ceaf6fd6 diff --cc neutron/services/qos/qos_plugin.py index 082fdae2b,d66acc268..9715a9754 --- a/neutron/services/qos/qos_plugin.py +++ b/neutron/services/qos/qos_plugin.py @@@ -83,8 -86,13 +86,9 @@@ class QoSPlugin(qos.QoSPluginBase) # we capture the API function call, and just pass # the rule type as a parameter removing lots of # future code duplication when we have more rules. + @db_base_plugin_common.convert_result_to_dict def create_policy_bandwidth_limit_rule(self, context, policy_id, bandwidth_limit_rule): - #TODO(QoS): avoid creation of severan bandwidth limit rules - # in the future we need an inter-rule validation - # mechanism to verify all created rules will - # play well together. # validate that we have access to the policy policy = self._get_policy_obj(context, policy_id) rule = rule_object.QosBandwidthLimitRule(