From a8bea7a8434c83c645cb640ae13a8da118d60916 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Wed, 29 Nov 2023 03:07:48 +0700 Subject: [PATCH] fix:A001 variable vars is shadowing a python builtin --- filter_plugins/groupby_filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter_plugins/groupby_filters.py b/filter_plugins/groupby_filters.py index 0fba531..a176078 100644 --- a/filter_plugins/groupby_filters.py +++ b/filter_plugins/groupby_filters.py @@ -1,8 +1,8 @@ def group_by_domain(hostvars): domain_groups = {} - for host, vars in hostvars.items(): - domain = vars.get("default_public_dns_lb") + for host, host_vars in hostvars.items(): + domain = host_vars.get("default_public_dns_lb") if domain: domain_groups.setdefault(domain, []).append(host)