mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #32684 from captaininspiration/2015.8
Fix routes for redhat < 6
This commit is contained in:
commit
f63566e452
@ -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…
Reference in New Issue
Block a user