mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
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:
commit
6736aa624d
@ -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'](
|
||||
|
Loading…
Reference in New Issue
Block a user