1
0
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:
Roopa Prabhu
2016-08-11 16:30:00 -07:00
parent 80be09bac1
commit de1b2b2b04

View File

@@ -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