Skip to content
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

Merged
merged 0 commits into from
Dec 1, 2022
Merged

fix: fix errors in ethtool #3605

merged 0 commits into from
Dec 1, 2022

Conversation

chenlizhong
Copy link
Contributor

@chenlizhong chenlizhong commented Nov 22, 2022

Signed-off-by: Chen lizhong [email protected]

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

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'"

@chenlizhong
Copy link
Contributor Author

@psachin @xiangce @ryan-blakley
This MR is to fix below 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'")

@chenlizhong chenlizhong changed the title Fix errors in ethtool fix: fix errors in ethtool Nov 23, 2022
insights/parsers/ethtool.py Outdated Show resolved Hide resolved
@xiangce xiangce merged commit 9ed8f4a into master Dec 1, 2022
@xiangce xiangce deleted the fix_bug_ethtool branch December 1, 2022 02:44
xiangce pushed a commit that referenced this pull request Dec 7, 2022
* 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)
xiangce pushed a commit that referenced this pull request Sep 6, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants