From 96c50be68f83c439a8c0a9de3b05df3ad8664269 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 27 Jan 2024 18:36:32 +0100 Subject: [PATCH] replace std with rule --- ansiblelater/rule.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansiblelater/rule.py b/ansiblelater/rule.py index 4508860..c275e57 100644 --- a/ansiblelater/rule.py +++ b/ansiblelater/rule.py @@ -334,10 +334,10 @@ class RulesLoader: ) def validate(self): - normalized_std = list(toolz.remove(lambda x: x.rid == "", self.rules)) - unique_std = len(list(toolz.unique(normalized_std, key=lambda x: x.rid))) - all_std = len(normalized_std) - if all_std != unique_std: + normalize_rule = list(toolz.remove(lambda x: x.rid == "", self.rules)) + unique_rule = len(list(toolz.unique(normalize_rule, key=lambda x: x.rid))) + all_rules = len(normalize_rule) + if all_rules != unique_rule: sysexit_with_message( "Found duplicate tags in rules definition. Please use unique tags only." )