fix missing vm ids

This commit is contained in:
forest 2021-12-09 14:44:25 -06:00
parent 9a34921916
commit ca26d4b2af

View File

@ -184,7 +184,7 @@ class ShellScriptSpoke(VirtualizationInterface):
else:
current_app.logger.warn(f"get_all_by_host_and_network: '{vm['domain']}' not in vm_state_by_id, defaulting to 'shut off'")
vms_by_id[vm['domain']] = dict(macs=dict(), state=vm_state, network_name=network['network_name'])
vms_by_id[vm['domain']] = dict(id=vm['domain'], macs=dict(), state=vm_state, network_name=network['network_name'])
vms_by_id[vm['domain']]['macs'][mac] = True