mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
ifupdown: template: changing error message when import mako fail
Ticket: CM-11590 Reviewed By: Roopa, Nikhil G Testing Done: Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -38,9 +38,10 @@ class templateEngine():
|
|||||||
self.tclassargs['lookup'] = lc(
|
self.tclassargs['lookup'] = lc(
|
||||||
directories=template_lookuppath.split(':'))
|
directories=template_lookuppath.split(':'))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.warn('unable to set template lookup path' +
|
self.logger.warn('unable to set template lookup path'
|
||||||
' %s (%s)' %(template_lookuppath, str(e)))
|
' %s (%s): are you sure \'python-mako\''
|
||||||
pass
|
'is installed?'
|
||||||
|
% (template_lookuppath, str(e)))
|
||||||
self.render = self._render_mako
|
self.render = self._render_mako
|
||||||
else:
|
else:
|
||||||
self.logger.info('skip template processing.., ' +
|
self.logger.info('skip template processing.., ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user