From d441a711e5590cc579ae0e0a73ea463718d4d79e Mon Sep 17 00:00:00 2001 From: cdoern Date: Tue, 12 Apr 2022 22:21:33 -0400 Subject: 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 --- cmd/podman/machine/inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman') 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 -- cgit v1.2.3-54-g00ecf