]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
ifupdown: template: changing error message when import mako fail
authorJulien Fortin <julien@cumulusnetworks.com>
Wed, 10 Aug 2016 13:15:15 +0000 (15:15 +0200)
committerJulien Fortin <julien@cumulusnetworks.com>
Wed, 10 Aug 2016 13:15:15 +0000 (15:15 +0200)
Ticket: CM-11590
Reviewed By: Roopa, Nikhil G
Testing Done:

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
ifupdown/template.py

index d315dddbfef7df5c0a95ac9b2aa35afb3ad8f344..4397834e0c59b0fe4f745bab9bfef00f16bd4d06 100644 (file)
@@ -38,9 +38,10 @@ class templateEngine():
                     self.tclassargs['lookup'] = lc(
                                 directories=template_lookuppath.split(':'))
                 except Exception, e:
-                    self.logger.warn('unable to set template lookup path' +
-                                ' %s (%s)' %(template_lookuppath, str(e)))
-                    pass
+                    self.logger.warn('unable to set template lookup path'
+                                     ' %s (%s): are you sure \'python-mako\''
+                                     'is installed?'
+                                     % (template_lookuppath, str(e)))
             self.render = self._render_mako
         else:
             self.logger.info('skip template processing.., ' +