mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50028 from basseed/fix-windows-virtual-grain
Fix #50015, Windows grain defaults to physical as unix grain
This commit is contained in:
commit
e562838f5f
1 changed files with 2 additions and 0 deletions
|
@ -446,6 +446,8 @@ def _windows_virtual(osdata):
|
|||
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.
|
||||
manufacturer = osdata.get('manufacturer', '')
|
||||
|
|
Loading…
Add table
Reference in a new issue