mirror of https://github.com/containers/podman.git
Merge pull request #21246 from ashley-cui/lastupapplehv
AppleHV: update LastUp time
This commit is contained in:
commit
17831420a2
|
|
@ -759,8 +759,13 @@ func (m *MacMachine) Stop(name string, opts machine.StopOptions) error {
|
|||
logrus.Error(err)
|
||||
}
|
||||
}()
|
||||
if err := m.Vfkit.Stop(false, true); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return m.Vfkit.Stop(false, true)
|
||||
// keep track of last up
|
||||
m.LastUp = time.Now()
|
||||
return m.writeConfig()
|
||||
}
|
||||
|
||||
// getVMConfigPath is a simple wrapper for getting the fully-qualified
|
||||
|
|
|
|||
Loading…
Reference in New Issue