mirror of
				https://github.com/CumulusNetworks/ifupdown2.git
				synced 2024-05-06 15:54:50 +00:00 
			
		
		
		
	ifupdownaddons: modulebase: log_error will log.error or raise an exception
Ticket: None Reviewed By: Roopa, Nikhil G Testing Done: Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
		@@ -59,6 +59,8 @@ class moduleBase(object):
 | 
			
		||||
                if ifaceobj:
 | 
			
		||||
                    ifaceobj.set_status(ifaceStatus.ERROR)
 | 
			
		||||
                raise Exception(str)
 | 
			
		||||
            else:
 | 
			
		||||
                self.logger.error(str)
 | 
			
		||||
        else:
 | 
			
		||||
            pass
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user