mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix #50015, Windows grain defaults to physical as unix grain
This commit is contained in:
parent
a6a66b9b3f
commit
82fa86617f
1 changed files with 2 additions and 0 deletions
|
@ -445,6 +445,8 @@ def _windows_virtual(osdata):
|
|||
grains = dict()
|
||||
if osdata['kernel'] != 'Windows':
|
||||
return grains
|
||||
|
||||
grains['virtual'] = 'physical'
|
||||
|
||||
# It is possible that the 'manufacturer' and/or 'productname' grains
|
||||
# exist but have a value of None.
|
||||
|
|
Loading…
Add table
Reference in a new issue