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(
 | 
			
		||||
                                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.., ' +
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user