fix missing vm ids
This commit is contained in:
parent
9a34921916
commit
ca26d4b2af
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user