Add support for EC2

This commit is contained in:
twangboy 2019-05-03 22:44:55 -06:00
parent 60029398c6
commit 1c9b372405
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB

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