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 not self.ignore_error(str):
|
||||||
if self.logger.getEffectiveLevel() == logging.DEBUG:
|
if self.logger.getEffectiveLevel() == logging.DEBUG:
|
||||||
traceback.print_stack()
|
traceback.print_stack()
|
||||||
|
if raise_error:
|
||||||
if ifaceobj:
|
if ifaceobj:
|
||||||
ifaceobj.set_status(ifaceStatus.ERROR)
|
ifaceobj.set_status(ifaceStatus.ERROR)
|
||||||
if raise_error:
|
|
||||||
raise Exception(str)
|
raise Exception(str)
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user