aboutsummaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-01-12 05:39:27 -0500
committerGitHub <noreply@github.com>2022-01-12 05:39:27 -0500
commit8365d49a05eccbaad4a796470c2cf62083249997 (patch)
tree488fde1071d4ccdfa0bbb15a86359a293556ae8e /pkg/machine/qemu
parent6945b37850d77944fc79a784af9e362cb0184234 (diff)
parent6e208c2226f856ed67d6ab807f3baf5bf9611135 (diff)
downloadpodman-8365d49a05eccbaad4a796470c2cf62083249997.tar.gz
podman-8365d49a05eccbaad4a796470c2cf62083249997.tar.bz2
podman-8365d49a05eccbaad4a796470c2cf62083249997.zip
Merge pull request #12819 from rhatdan/machine
add additional fields to podman machine ls --json
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go3
1 files changed, 3 insertions, 0 deletions
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