mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Merge pull request #52839 from twangboy/fix_test_grain
Add support for EC2
This commit is contained in:
commit
b625a6a0b6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue