diff options
author | cdoern <cbdoer23@g.holycross.edu> | 2022-04-12 22:21:33 -0400 |
---|---|---|
committer | cdoern <cbdoer23@g.holycross.edu> | 2022-04-25 14:14:45 -0400 |
commit | d441a711e5590cc579ae0e0a73ea463718d4d79e (patch) | |
tree | 415249c671acb4223867b879749efa5221786fe9 /cmd/podman/machine/inspect.go | |
parent | ba6356280a86531d3cda7016859aef98bb3d8272 (diff) | |
download | podman-d441a711e5590cc579ae0e0a73ea463718d4d79e.tar.gz podman-d441a711e5590cc579ae0e0a73ea463718d4d79e.tar.bz2 podman-d441a711e5590cc579ae0e0a73ea463718d4d79e.zip |
machine starting status
podman machine was using the file modification time to get the running status
add three new config entries Starting (bool) Created (time) LastUp (time) to actually
keep track of when these events happened. This means we can use the config file
to actually store this data and not mess up the created/last-up time.
This fixes the issues where the machine would report running 15 seconds before it was up.
Also fixes the issue of modifying the file manually and saying the machine is "up"
[NO NEW TESTS NEEDED]
resolves #13711
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'cmd/podman/machine/inspect.go')
-rw-r--r-- | cmd/podman/machine/inspect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/machine/inspect.go b/cmd/podman/machine/inspect.go index d43cabf6b..1884cf94d 100644 --- a/cmd/podman/machine/inspect.go +++ b/cmd/podman/machine/inspect.go @@ -59,7 +59,7 @@ func inspect(cmd *cobra.Command, args []string) error { errs = append(errs, err) continue } - state, err := vm.State() + state, err := vm.State(false) if err != nil { errs = append(errs, err) continue |