summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2021-09-22 12:29:24 +0200
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2021-09-22 17:14:07 +0200
commit911298252ad38b040c261a0055931795f19b222b (patch)
tree070491645e7546394ba95440a32d4ee9ba4a98b3 /pkg/machine/qemu
parentd88ed478cb6e422ee21a7ab9c99ece2d45bdfcab (diff)
downloadpodman-911298252ad38b040c261a0055931795f19b222b.tar.gz
podman-911298252ad38b040c261a0055931795f19b222b.tar.bz2
podman-911298252ad38b040c261a0055931795f19b222b.zip
Show cpus and memory in machine list
[NO TESTS NEEDED] Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index d5f538594..9dfdacb09 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -574,6 +574,8 @@ func GetVMInfos() ([]*machine.ListResponse, error) {
listEntry.Name = vm.Name
listEntry.VMType = "qemu"
+ listEntry.CPUs = vm.CPUs
+ listEntry.Memory = vm.Memory
fi, err := os.Stat(fullPath)
if err != nil {
return err