Remove unnecessary use of set around a generator.
It is unnecessary to use list, set, dict around a generator expression
to get object of that type, since there are comprehensions for these types.
@@ -37,7 +37,7 @@ CONF = cfg.CONF
def get_network_id(subnets):
- ids = list(set(net.id for net in subnets.values()))
+ ids = list({net.id for net in subnets.values()})
if len(ids) != 1:
raise k_exc.IntegrityError(
