Skip to content

Commit

Permalink
fix:A001 variable vars is shadowing a python builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Nov 28, 2023
1 parent 26af2cc commit a8bea7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filter_plugins/groupby_filters.py
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit a8bea7a

Please sign in to comment.