1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Fix error flag for cases where errors are ignored (part of commit

3afb698d60a7ec0bb3029efccc82c0bd1aa49197)

Ticket: CM-2960
Reviewed By:
Testing Done: ifupdown2 sanity + precommit
This commit is contained in:
Roopa Prabhu
2014-07-03 14:43:26 -07:00
parent 5973036bba
commit 699c1cffee

View File

@ -81,6 +81,8 @@ class ifaceScheduler():
except Exception, e: except Exception, e:
err = 1 err = 1
ifupdownobj.log_error(str(e)) ifupdownobj.log_error(str(e))
err = 0 # error can be ignored by log_error, in which case
# reset err flag
finally: finally:
if err: if err:
ifaceobj.set_state_n_status(ifaceState.from_str(op), ifaceobj.set_state_n_status(ifaceState.from_str(op),