Skip to content

Commit

Permalink
Merge pull request containers#11900 from afbjorklund/machine-table
Browse files Browse the repository at this point in the history
Not all fields in machine list were set properly
  • Loading branch information
openshift-merge-robot authored Oct 9, 2021
2 parents bd4d9a0 + 5caf6b9 commit c1cb016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/podman/machine/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit c1cb016

Please sign in to comment.