Skip to content

Comments

Added get_net_info tome#505

Merged
hulto merged 4 commits intospellshift:mainfrom
Alextibtab:feature/get-net-info-tome
Jan 26, 2024
Merged

Added get_net_info tome#505
hulto merged 4 commits intospellshift:mainfrom
Alextibtab:feature/get-net-info-tome

Conversation

@Alextibtab
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Tome for printing hostname and interfaces

Which issue(s) this PR fixes:

Fixes #492

@codecov
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2ee51b1) 70.91% compared to head (0acd474) 70.91%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #505   +/-   ##
=======================================
  Coverage   70.91%   70.91%           
=======================================
  Files         126      126           
  Lines       10001    10001           
=======================================
  Hits         7092     7092           
  Misses       2764     2764           
  Partials      145      145           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

hulto
hulto previously approved these changes Jan 26, 2024
Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock but please see change request.

else:
print("{}: {}\n".format(key, value))
print("\n")
print("Hostname:\n\n" + sys.hostname())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit.
Can we put hostname in line with the header as you do with mac and ip.
Should just be moving the newlines to the end.
Eg. Hostname: hultos-laptop

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@hulto hulto merged commit f7c44dc into spellshift:main Jan 26, 2024
KCarretto pushed a commit that referenced this pull request Feb 1, 2024
 
Added get_net_info tome (#505)
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.

Implement a get_net_info tome

2 participants