Merge "Fix QoS rule update" into stable/queens
This commit is contained in:
commit
4408da7fb6
@ -354,8 +354,7 @@ class QoSPlugin(qos.QoSPluginBase):
|
||||
policy = self._get_policy_obj(context, policy_id)
|
||||
# Ensure the rule belongs to the policy.
|
||||
checker.check_bandwidth_rule_conflict(policy, rule_data)
|
||||
policy.get_rule_by_id(rule_id)
|
||||
rule = rule_cls(context, id=rule_id)
|
||||
rule = policy.get_rule_by_id(rule_id)
|
||||
rule.update_fields(rule_data, reset_changes=True)
|
||||
checker.check_rules_conflict(policy, rule)
|
||||
rule.update()
|
||||
|
Loading…
Reference in New Issue
Block a user