Rex::Commands::Inventory throws warnings if netstat not installed
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
As below
[2017-10-11 21:51:29] ERROR - Error executing task:
[2017-10-11 21:51:29] ERROR - Error running netstat at /home/dean/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/Rex/Hardware/Network/Linux.pm line 225.
[2017-10-11 21:51:29] ERROR - 1 out of 2 task(s) failed:
[2017-10-11 21:51:29] ERROR - fix_hosts_file failed on nextcloud01
[2017-10-11 21:51:29] ERROR - Error running netstat at /home/dean/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/Rex/Hardware/Network/Linux.pm line 225.
Probably it should handle netstat's absence nicely
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Rex/Hardware/Network/Linux.pm around line 225, where the reported netstat error occurs, and inspect how the inventory command handles netstat being unavailable. Done means the absence of netstat is handled without emitting the reported warnings or task failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, perl
- Domain
- devops, networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100