mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #2018 from favoretti/develop
Added Parallels detection into _virtual() grain.
This commit is contained in:
commit
66f66a444d
@ -218,6 +218,9 @@ def _virtual(osdata):
|
||||
# Product Name: Virtual Machine
|
||||
elif 'Manufacturer: Microsoft' in output and 'Virtual Machine' in output:
|
||||
grains['virtual'] = 'VirtualPC'
|
||||
# Manufacturer: Parallels Software International Inc.
|
||||
elif 'Parallels Software' in output:
|
||||
grains['virtual'] = 'Parallels'
|
||||
# Fall back to lspci if dmidecode isn't available
|
||||
elif lspci:
|
||||
model = __salt__['cmd.run']('lspci').lower()
|
||||
|
Loading…
Reference in New Issue
Block a user