mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #53351 from waynew/53171-fix-network-managed
Add checks for Amazon Linux to ip module
This commit is contained in:
commit
5efb670404
1 changed files with 8 additions and 0 deletions
|
@ -1032,6 +1032,14 @@ def build_interface(iface, iface_type, enabled, **settings):
|
|||
rh_major = '7'
|
||||
else:
|
||||
rh_major = '6'
|
||||
elif __grains__['os'] == 'Amazon':
|
||||
# TODO: Is there a better formula for this? -W. Werner, 2019-05-30
|
||||
# If not, it will need to be updated whenever Amazon releases
|
||||
# Amazon Linux 3
|
||||
if __grains__['osmajorrelease'] == 2:
|
||||
rh_major = '7'
|
||||
else:
|
||||
rh_major = '6'
|
||||
else:
|
||||
rh_major = __grains__['osrelease'][:1]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue