Merge pull request #52839 from twangboy/fix_test_grain

Add support for EC2
This commit is contained in:
Daniel Wozniak 2019-05-04 10:28:53 -07:00 committed by GitHub
commit b625a6a0b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1341,6 +1341,8 @@ def _windows_platform_data():
grains['virtual_subtype'] = 'HVM domU'
elif 'OpenStack' in systeminfo.Model:
grains['virtual'] = 'OpenStack'
elif 'AMAZON' in biosinfo.Version:
grains['virtual'] = 'EC2'
return grains