diff options
author | Brent Baude <bbaude@redhat.com> | 2022-04-26 16:04:57 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-05-03 13:42:54 -0400 |
commit | a9a70a9491ffdaea40c9b521f6d2afe140226b9f (patch) | |
tree | 33e4e291c0c96777be80227c5dbe36a95e7da199 /cmd/podman/machine/inspect.go | |
parent | 1d21204122178925a400b32e643047aa391082bb (diff) | |
download | podman-a9a70a9491ffdaea40c9b521f6d2afe140226b9f.tar.gz podman-a9a70a9491ffdaea40c9b521f6d2afe140226b9f.tar.bz2 podman-a9a70a9491ffdaea40c9b521f6d2afe140226b9f.zip |
Refactor machine inspect
I was asked to refactor machine inspect output to represent more common
and basic information. machine inspect now has information that would
be appropriate for different machines.
[NO NEW TESTS NEEDED]
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/machine/inspect.go')
-rw-r--r-- | cmd/podman/machine/inspect.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/podman/machine/inspect.go b/cmd/podman/machine/inspect.go index 147afe2b4..21e5074b7 100644 --- a/cmd/podman/machine/inspect.go +++ b/cmd/podman/machine/inspect.go @@ -59,16 +59,12 @@ func inspect(cmd *cobra.Command, args []string) error { errs = append(errs, err) continue } - state, err := vm.State(false) + ii, err := vm.Inspect() if err != nil { errs = append(errs, err) continue } - ii := machine.InspectInfo{ - State: state, - VM: vm, - } - vms = append(vms, ii) + vms = append(vms, *ii) } if len(inspectFlag.format) > 0 { // need jhonce to work his template magic |