We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce533ab commit 8567b3dCopy full SHA for 8567b3d
flow/util/genRuleFile.py
@@ -314,12 +314,12 @@ def gen_rule_file(
314
skip_metric = (
315
True if len(include_metrics) > 0 and field not in include_metrics else False
316
)
317
- can_compare = OLD_RULES is not None and field in OLD_RULES.keys()
+ has_old_rule = OLD_RULES is not None and field in OLD_RULES.keys()
318
319
- if can_compare and skip_metric:
+ if has_old_rule and skip_metric:
320
rule_value = OLD_RULES[field]["value"]
321
322
- if can_compare and not skip_metric:
+ if has_old_rule and not skip_metric:
323
old_rule = OLD_RULES[field]
324
if old_rule["compare"] != option["compare"]:
325
print("[WARNING] Compare operator changed since last update.")
0 commit comments