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:
@@ -57,6 +57,8 @@ class moduleBase(object):
|
|||||||
if ifaceobj:
|
if ifaceobj:
|
||||||
ifaceobj.set_status(ifaceStatus.ERROR)
|
ifaceobj.set_status(ifaceStatus.ERROR)
|
||||||
raise Exception(str)
|
raise Exception(str)
|
||||||
|
else:
|
||||||
|
self.logger.error(str)
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user