summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-28 13:59:23 -0400
committerGitHub <noreply@github.com>2022-04-28 13:59:23 -0400
commitb2725024f859193eef10d33837258b206aab8245 (patch)
tree6c4e7d20555b6a6b20d1ac486716c2cc4767d25b /pkg/machine/qemu
parent8c2d6b86644f252fb9d145a4eb6bf2b9d723e010 (diff)
parentc721acf082a720ea6ccdf6bc4726215754239237 (diff)
downloadpodman-b2725024f859193eef10d33837258b206aab8245.tar.gz
podman-b2725024f859193eef10d33837258b206aab8245.tar.bz2
podman-b2725024f859193eef10d33837258b206aab8245.zip
Merge pull request #14024 from cdoern/machine
podman machine starting test
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index ccfad90f7..30e64e44e 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -1066,11 +1066,11 @@ func getVMInfos() ([]*machine.ListResponse, error) {
return err
}
- if !vm.LastUp.IsZero() {
+ if !vm.LastUp.IsZero() { // this means we have already written a time to the config
listEntry.LastUp = vm.LastUp
- } else {
+ } else { // else we just created the machine AKA last up = created time
listEntry.LastUp = vm.Created
- vm.Created = time.Now()
+ vm.LastUp = listEntry.LastUp
if err := vm.writeConfig(); err != nil {
return err
}