Skip to content

Commit

Permalink
Merge pull request #1316 from stgraber/main
Browse files Browse the repository at this point in the history
incusd/instance/qemu: Don't fail on console retrival issue
  • Loading branch information
hallyn authored Oct 17, 2024
2 parents f33819a + c94bc7f commit 12a63af
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 12a63af

Please sign in to comment.