Fix #50015, Windows grain defaults to physical as unix grain

This commit is contained in:
marcoc 2018-10-13 23:34:30 +01:00
parent a6a66b9b3f
commit 82fa86617f

View file

@ -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.