mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix routes for redhat < 6
This commit is contained in:
parent
aaa03bc6e6
commit
640c7a90da
1 changed files with 5 additions and 2 deletions
|
@ -964,8 +964,11 @@ def build_routes(iface, **settings):
|
|||
'''
|
||||
|
||||
template = 'rh6_route_eth.jinja'
|
||||
if __grains__['osrelease'][0] < 6:
|
||||
template = 'route_eth.jinja'
|
||||
try:
|
||||
if int(__grains__['osrelease'][0]) < 6:
|
||||
template = 'route_eth.jinja'
|
||||
except ValueError:
|
||||
pass
|
||||
log.debug('Template name: ' + template)
|
||||
|
||||
iface = iface.lower()
|
||||
|
|
Loading…
Add table
Reference in a new issue