mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
modulebase: dont set iface status to error if raise_err is False
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -53,9 +53,9 @@ class moduleBase(object):
|
||||
if not self.ignore_error(str):
|
||||
if self.logger.getEffectiveLevel() == logging.DEBUG:
|
||||
traceback.print_stack()
|
||||
if ifaceobj:
|
||||
ifaceobj.set_status(ifaceStatus.ERROR)
|
||||
if raise_error:
|
||||
if ifaceobj:
|
||||
ifaceobj.set_status(ifaceStatus.ERROR)
|
||||
raise Exception(str)
|
||||
else:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user