Skip to content

Commit

Permalink
Merge pull request #21246 from ashley-cui/lastupapplehv
Browse files Browse the repository at this point in the history
AppleHV: update LastUp time
  • Loading branch information
openshift-merge-bot[bot] authored Jan 12, 2024
2 parents a7b81b3 + f374e07 commit 1783142
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/machine/applehv/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1783142

Please sign in to comment.