From 6e208c2226f856ed67d6ab807f3baf5bf9611135 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 11 Jan 2022 16:42:54 -0500 Subject: add additional fields to podman machine ls --json [NO NEW TESTS NEEDED] Signed-off-by: Daniel J Walsh --- pkg/machine/qemu/machine.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/machine/qemu') diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index f09107c71..a43d78665 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -696,6 +696,9 @@ func GetVMInfos() ([]*machine.ListResponse, error) { listEntry.CPUs = vm.CPUs listEntry.Memory = vm.Memory * units.MiB listEntry.DiskSize = vm.DiskSize * units.GiB + listEntry.Port = vm.Port + listEntry.RemoteUsername = vm.RemoteUsername + listEntry.IdentityPath = vm.IdentityPath fi, err := os.Stat(fullPath) if err != nil { return err -- cgit v1.2.3-54-g00ecf