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:
@@ -116,8 +116,7 @@ class ethtool(moduleBase,utilsBase):
|
||||
cmd = 'ethtool -s %s %s' %(ifaceobj.name, cmd)
|
||||
self.exec_command(cmd)
|
||||
except Exception, e:
|
||||
ifaceobj.status = ifaceStatus.ERROR
|
||||
self.log_warn('%s: %s' %(ifaceobj.name, str(e)))
|
||||
self.log_error('%s: %s' %(ifaceobj.name, str(e)), ifaceobj)
|
||||
else:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user