fix copy and paste error network vs network_name
This commit is contained in:
parent
92af0192c7
commit
9a34921916
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user