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

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