Merge "Remove unnecessary use of set around a generator."

This commit is contained in:
Zuul 2021-05-07 13:10:03 +00:00 committed by Gerrit Code Review
commit 0c894ceb1d
1 changed files with 1 additions and 1 deletions

View File

@ -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(