diff options
author | Ashley Cui <acui@redhat.com> | 2022-06-17 14:47:26 -0400 |
---|---|---|
committer | Ashley Cui <acui@redhat.com> | 2022-07-05 15:18:41 -0400 |
commit | 9d6efb34428811cc2b55b306733911cf20bd0b44 (patch) | |
tree | 887aaf6a2703035c893451740f393da0186aade7 /pkg/machine/qemu | |
parent | b00e65aa9c071428579a55f91a92f3702765ed85 (diff) | |
download | podman-9d6efb34428811cc2b55b306733911cf20bd0b44.tar.gz podman-9d6efb34428811cc2b55b306733911cf20bd0b44.tar.bz2 podman-9d6efb34428811cc2b55b306733911cf20bd0b44.zip |
Podman machine info
Add podman machine info command, which displays infor about the machine
host as well as version info.
Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r-- | pkg/machine/qemu/machine.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go index 2fe0230cf..616d573eb 100644 --- a/pkg/machine/qemu/machine.go +++ b/pkg/machine/qemu/machine.go @@ -1698,6 +1698,9 @@ func isProcessAlive(pid int) bool { if err == nil || err == unix.EPERM { return true } - return false } + +func (p *Provider) VMType() string { + return vmtype +} |