Merge "Remove unnecessary use of set around a generator."
This commit is contained in:
commit
0c894ceb1d
|
@ -38,7 +38,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(
|
||||
|
|
Loading…
Reference in New Issue