Merge pull request #15598 from xenophonf/fixed-freebsd-virtualpc-detection-issue-15594

Fixed 'virtual: VirtualPC' setting on FreeBSD in salt/grains/core.py
This commit is contained in:
Erik Johnson 2014-09-08 20:07:45 -05:00
commit 6736aa624d

View File

@ -635,6 +635,8 @@ def _virtual(osdata):
if maker.startswith('Xen'):
grains['virtual_subtype'] = '{0} {1}'.format(maker, product)
grains['virtual'] = 'xen'
if maker.startswith('Microsoft') and product.startswith('Virtual'):
grains['virtual'] = 'VirtualPC'
if sysctl:
model = __salt__['cmd.run']('{0} hw.model'.format(sysctl))
jail = __salt__['cmd.run'](