Browse Source

Merge "Fix QoS rule update"

Zuul 1 month ago
parent
commit
03d0e43c32
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      neutron/services/qos/qos_plugin.py

+ 1
- 2
neutron/services/qos/qos_plugin.py View File

@@ -438,8 +438,7 @@ class QoSPlugin(qos.QoSPluginBase):
438 438
             policy = policy_object.QosPolicy.get_policy_obj(context, policy_id)
439 439
             # Ensure the rule belongs to the policy.
440 440
             checker.check_bandwidth_rule_conflict(policy, rule_data)
441
-            policy.get_rule_by_id(rule_id)
442
-            rule = rule_cls(context, id=rule_id)
441
+            rule = policy.get_rule_by_id(rule_id)
443 442
             rule.update_fields(rule_data, reset_changes=True)
444 443
             checker.check_rules_conflict(policy, rule)
445 444
             rule.update()

Loading…
Cancel
Save