Skip to content

Commit

Permalink
incusd/instances/qemu: Don't fail event sending on missing agent
Browse files Browse the repository at this point in the history
Closes lxc#323

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Dec 21, 2023
1 parent 3794329 commit 2fbdbe9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -8182,6 +8182,11 @@ func (d *qemu) devIncusEventSend(eventType string, eventMessage map[string]any)

client, err := d.getAgentClient()
if err != nil {
// Don't fail if the VM simply doesn't have an agent.
if err == errQemuAgentOffline {
return nil
}

return err
}

Expand Down

0 comments on commit 2fbdbe9

Please sign in to comment.