Skip to content

Strip uptime from 'show version' command in SG220 switches#2042

Merged
wk merged 1 commit intoytti:masterfrom
ntokos:master
Mar 7, 2020
Merged

Strip uptime from 'show version' command in SG220 switches#2042
wk merged 1 commit intoytti:masterfrom
ntokos:master

Conversation

@ntokos
Copy link
Copy Markdown
Contributor

@ntokos ntokos commented Mar 6, 2020

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

PR #1473 has solved the login issues for SG220 switches that ciscosmb model has.
In order to completely assimilate SG220 switches there also has to be a solution for the uptime string that causes meaningless diffs. Note that the complete removal of show system command from the ciscosmb model (as per PR #1799) hasn't solved the problem since in SG220 switches the uptime is printed by the show version command.

This should be the last required change to close issue #1148

Strip uptime that is displayed by the 'show version' command in SG220 switches to avoid meaningless diffs, as noted in issue ytti#1148
@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 6, 2020

Codecov Report

Merging #2042 into master will increase coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2042      +/-   ##
==========================================
+ Coverage   63.19%   63.32%   +0.13%     
==========================================
  Files          30       30              
  Lines        1497     1497              
==========================================
+ Hits          946      948       +2     
+ Misses        551      549       -2
Impacted Files Coverage Δ
lib/oxidized/output/git.rb 19% <0%> (+1.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 564e144...7812443. Read the comment docs.

@wk wk merged commit 462db2c into ytti:master Mar 7, 2020
@wk
Copy link
Copy Markdown
Contributor

wk commented Mar 7, 2020

Thanks! Consider adding a line to CHANGELOG.md in future contributions to both take credit for your work and inform others of any changes.

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.

3 participants