]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merge "Replace to_dict() calls with a function decorator" into feature/qos
authorJenkins <jenkins@review.openstack.org>
Tue, 4 Aug 2015 13:49:56 +0000 (13:49 +0000)
committerGerrit Code Review <review@openstack.org>
Tue, 4 Aug 2015 13:49:56 +0000 (13:49 +0000)
1  2 
neutron/services/qos/qos_plugin.py

index 082fdae2b8ec7b2a893101e257894fdc77b34200,d66acc2685cf5055f6c06023a5bcf6cd01f300ae..9715a97546b676914d6d9a8e18da4d93ea06287a
@@@ -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(