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:
Mike Place 2018-10-16 11:29:40 +02:00 committed by GitHub
commit e562838f5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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', '')