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

addons: move some warns to errors and make sure all errors set the exit

code correctly

Ticket: CM-7168
Reviewed By: julien
Testing Done: Tested ifupdown2 negative testcases and ran ifupdown2 smoke

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
Roopa Prabhu
2016-05-15 13:28:10 -07:00
parent 84414544de
commit bf3eda91db
10 changed files with 91 additions and 74 deletions

View File

@@ -68,7 +68,7 @@ class dhcp(moduleBase):
self.dhclientcmd.start6(ifaceobj.name, wait=wait,
cmd_prefix=dhclient_cmd_prefix)
except Exception, e:
self.log_error(str(e))
self.log_error(str(e), ifaceobj)
def _down(self, ifaceobj):
dhclient_cmd_prefix = None