diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-28 13:59:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 13:59:23 -0400 |
commit | b2725024f859193eef10d33837258b206aab8245 (patch) | |
tree | 6c4e7d20555b6a6b20d1ac486716c2cc4767d25b /pkg/machine/qemu | |
parent | 8c2d6b86644f252fb9d145a4eb6bf2b9d723e010 (diff) | |
parent | c721acf082a720ea6ccdf6bc4726215754239237 (diff) | |
download | podman-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.go | 6 |
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 } |