Skip to content

Commit

Permalink
incusd/instance/qemu: Don't fail on console retrival issue
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Oct 17, 2024
1 parent f33819a commit c94bc7f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4953,11 +4953,8 @@ func (d *qemu) Stop(stateful bool) error {
}
}

// Save the console log from ring buffer before the instance is stopped. Must be run prior to creating the operation lock.
_, err := d.ConsoleLog()
if err != nil {
return err
}
// Attempt to save the console log from ring buffer before the instance is stopped. Must be run prior to creating the operation lock.
_, _ = d.ConsoleLog()

// Setup a new operation.
// Allow inheriting of ongoing restart or restore operation (we are called from restartCommon and Restore).
Expand Down

0 comments on commit c94bc7f

Please sign in to comment.