dns_zone: bug: replace generator with set

This commit is contained in:
jeltz 2022-08-18 01:33:52 +02:00
parent 961a2f1105
commit 43693c2fc8
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -238,7 +238,7 @@ def make_records(args, ty):
if value is not None
}
multi_keys = (k for k, v in types.items() if is_multi_records(v))
multi_keys = {k for k, v in types.items() if is_multi_records(v)}
for single_args in product_dict(clean_args, multi_keys):
yield ty(**single_args)