summaryrefslogtreecommitdiff
path: root/cmd/podman/machine
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-28 16:21:33 -0400
committerGitHub <noreply@github.com>2022-04-28 16:21:33 -0400
commit765c8818e4ad7730b4d1a79bf33c3c3735c0a0e5 (patch)
treef9ba2281b8be875ea10e2bf0f927b1dcad2e1249 /cmd/podman/machine
parent2e9f792e378491acc3c04ba389ec7cf15bef471e (diff)
parent2902d32c4989a6c391d713fab7eb567eaac9d4cb (diff)
downloadpodman-765c8818e4ad7730b4d1a79bf33c3c3735c0a0e5.tar.gz
podman-765c8818e4ad7730b4d1a79bf33c3c3735c0a0e5.tar.bz2
podman-765c8818e4ad7730b4d1a79bf33c3c3735c0a0e5.zip
Merge pull request #14033 from baude/inspectredo
Refactor machine inspect
Diffstat (limited to 'cmd/podman/machine')
-rw-r--r--cmd/podman/machine/inspect.go8
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