-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix errors in ethtool #3605
Conversation
@psachin @xiangce @ryan-blakley
|
498ec00
to
2e345ea
Compare
e6447ab
to
156d9c5
Compare
* fix: fix 'invalid literal for int() with base 10: n/a' error and 'bad line' parse exception in ethtool Signed-off-by: Chen lizhong <[email protected]> * test: fix flake8 error in test file Signed-off-by: Chen lizhong <[email protected]> * test: Remove print in test file Signed-off-by: Chen lizhong <[email protected]> * test: update test for n/a checking Signed-off-by: Chen lizhong <[email protected]> * fix: use isnumeric() method instead of 'n/a in value' Signed-off-by: Chen lizhong <[email protected]> * fix: support python3 and python2 both for isnumeric() Signed-off-by: Chen lizhong <[email protected]> * fix: fix flake8 Signed-off-by: Chen lizhong <[email protected]> * fix: fix error in python2.6 Signed-off-by: Chen lizhong <[email protected]> (cherry picked from commit 9ed8f4a)
* fix: fix 'invalid literal for int() with base 10: n/a' error and 'bad line' parse exception in ethtool Signed-off-by: Chen lizhong <[email protected]> * test: fix flake8 error in test file Signed-off-by: Chen lizhong <[email protected]> * test: Remove print in test file Signed-off-by: Chen lizhong <[email protected]> * test: update test for n/a checking Signed-off-by: Chen lizhong <[email protected]> * fix: use isnumeric() method instead of 'n/a in value' Signed-off-by: Chen lizhong <[email protected]> * fix: support python3 and python2 both for isnumeric() Signed-off-by: Chen lizhong <[email protected]> * fix: fix flake8 Signed-off-by: Chen lizhong <[email protected]> * fix: fix error in python2.6 Signed-off-by: Chen lizhong <[email protected]>
Signed-off-by: Chen lizhong [email protected]
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Fix errors:
insights.parsers.ethtool.CoalescingInfo ValueError("invalid literal for int() with base 10: 'n/a'")
insights.parsers.ethtool.TimeStamp ParseException('bad line: \tsoftware-receive')
insights.parsers.ethtool.TimeStamp ParseException('bad line: \thardware-transmit')
insights.parsers.ethtool.Ring ValueError("invalid literal for int() with base 10: 'n/a'"