[virt-what] Should there be an order in which facts are printed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looking at virt-what.in there does not appear to be any order in which
facts are ordered/printed.

I have a systemd-spawn container running on a vmware guest and receive
the following output.

-bash-4.2# virt-what 
vmware
lxc

However, it would appear that if I was running kvm with docker, lxc
would be listed first followed by kvm.

The reason I raise this question - I noticed facter[1] was returning
vmware instead of lxc. I dug in the code and found out that facter is
calling virt-what and is returning the first result.

If the hypevisor was printed first and then the container second I could
submit a patch to parse the last line of output.

Thanks,
Matthew

[1] https://github.com/puppetlabs/facter

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux