diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-10-08 21:30:12 +0200 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2021-12-15 09:19:06 -0500 |
commit | 789345791e2fd79f16532a2d893132d0d1992441 (patch) | |
tree | 8e83e19ecd1b2e3c6badd730fe511541ab37daa9 | |
parent | d00ae6a947263e0d1d91b265e5c01c290c009831 (diff) | |
download | podman-789345791e2fd79f16532a2d893132d0d1992441.tar.gz podman-789345791e2fd79f16532a2d893132d0d1992441.tar.bz2 podman-789345791e2fd79f16532a2d893132d0d1992441.zip |
Not all fields in machine list were set properly
When using custom output formats like table, some of the booleans
introduced for json format were not initialized correctly (wrong).
[NO NEW TESTS NEEDED]
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
-rw-r--r-- | cmd/podman/machine/list.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/machine/list.go b/cmd/podman/machine/list.go index 95b7d860f..7e5459e08 100644 --- a/cmd/podman/machine/list.go +++ b/cmd/podman/machine/list.go @@ -188,11 +188,13 @@ func toHumanFormat(vms []*machine.ListResponse) ([]*machineReporter, error) { response := new(machineReporter) if vm.Name == cfg.Engine.ActiveService { response.Name = vm.Name + "*" + response.Default = true } else { response.Name = vm.Name } if vm.Running { response.LastUp = "Currently running" + response.Running = true } else { response.LastUp = units.HumanDuration(time.Since(vm.LastUp)) + " ago" } |