Merge pull request #32684 from captaininspiration/2015.8

Fix routes for redhat < 6
This commit is contained in:
Nicole Thomas 2016-04-19 13:18:19 -06:00
commit f63566e452

View File

@ -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()