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:
@ -81,6 +81,8 @@ class ifaceScheduler():
|
||||
except Exception, e:
|
||||
err = 1
|
||||
ifupdownobj.log_error(str(e))
|
||||
err = 0 # error can be ignored by log_error, in which case
|
||||
# reset err flag
|
||||
finally:
|
||||
if err:
|
||||
ifaceobj.set_state_n_status(ifaceState.from_str(op),
|
||||
|
Reference in New Issue
Block a user