This commit is contained in:
Ken Evensen 2017-07-12 11:01:05 -04:00 committed by Chris Alfonso
parent e618221a0f
commit 8a5490ea5f

View file

@ -448,9 +448,7 @@ def insert_before_rule(service, old_rule, new_rule):
new_rule.rule_control != new_rule.rule_control !=
service.rules[index - 1].rule_control or service.rules[index - 1].rule_control or
new_rule.rule_module_path != new_rule.rule_module_path !=
service.rules[index - 1].rule_module_path or service.rules[index - 1].rule_module_path):
new_rule.rule_module_args !=
service.rules[index - 1].rule_module_args):
service.rules.insert(index, new_rule) service.rules.insert(index, new_rule)
changed = True changed = True
if changed: if changed:
@ -475,9 +473,7 @@ def insert_after_rule(service, old_rule, new_rule):
new_rule.rule_control != new_rule.rule_control !=
service.rules[index + 1].rule_control or service.rules[index + 1].rule_control or
new_rule.rule_module_path != new_rule.rule_module_path !=
service.rules[index + 1].rule_module_path or service.rules[index + 1].rule_module_path):
new_rule.rule_module_args !=
service.rules[index + 1].rule_module_args):
service.rules.insert(index + 1, new_rule) service.rules.insert(index + 1, new_rule)
changed = True changed = True
if changed: if changed: