Skip to content
Snippets Groups Projects
Commit a7bbd718 authored by Sam Roberts's avatar Sam Roberts
Browse files

more succinct

parent 899a0666
No related branches found
No related tags found
1 merge request!43Regions included in dashboard generation
...@@ -912,7 +912,7 @@ def load_interfaces_to_poll(config, hostname=None, no_lab=False, use_next_redis= ...@@ -912,7 +912,7 @@ def load_interfaces_to_poll(config, hostname=None, no_lab=False, use_next_redis=
region = None region = None
for region_name in region_index: for region_name in region_index:
# check if any of the customers are in this region # check if any of the customers are in this region
if any(region_index[region_name] & customer_set): if region_index[region_name] & customer_set:
# customers will only have one region, so if there's a match, break here # customers will only have one region, so if there's a match, break here
region = region_name region = region_name
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment