mirror of
https://github.com/containers/podman.git
synced 2025-11-01 22:32:50 +08:00
Merge pull request #21786 from Luap99/machine-gvproxy-cleanup
pkg/machine: ignore gvproxy pidfile not exists error
This commit is contained in:
@ -342,12 +342,9 @@ func Stop(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *machineDef
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := machine.CleanupGVProxy(*gvproxyPidFile); err != nil {
|
||||
logrus.Errorf("unable to clean up gvproxy: %q", err)
|
||||
}
|
||||
}()
|
||||
if err := machine.CleanupGVProxy(*gvproxyPidFile); err != nil {
|
||||
return fmt.Errorf("unable to clean up gvproxy: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user