fix copy and paste error network vs network_name

This commit is contained in:
forest 2021-12-09 14:42:51 -06:00
parent 92af0192c7
commit 9a34921916

View File

@ -205,10 +205,10 @@ class ShellScriptSpoke(VirtualizationInterface):
networks = dict()
for vm in vms_by_id.values():
if vm['network'] not in networks:
networks[vm['network']] = []
if vm['network_name'] not in networks:
networks[vm['network_name']] = []
networks[vm['network']].append(vm)
networks[vm['network_name']].append(vm)
to_return = dict()
to_return[current_app.config['SPOKE_HOST_ID']] = networks