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

Inject sane paths into shell_out #991

Merged
merged 1 commit into from
Apr 25, 2017
Merged

Conversation

akitada
Copy link
Contributor

@akitada akitada commented Apr 25, 2017

Description

Ohai network plugin for Linux fails to collect network related attributes
when networking commands like ip, route, ifconfig and arp are not in the $PATH.

Issues Resolved

#990

Check List

@akitada akitada force-pushed the linux_net_cmds_path branch 4 times, most recently from 8be12ed to 6cdfc4f Compare April 25, 2017 15:24
@tas50
Copy link
Contributor

tas50 commented Apr 25, 2017

@akitada Thanks for taking a stab at this. You'll need to make sure the which command in the specs actually returns the expected data. It works on *nix systems that actually have those commands, but the specs blow up on Windows systems where we're autofilling "false"

@akitada akitada changed the title Do not assume networking commands are in the $PATH WIP: Do not assume networking commands are in the $PATH Apr 25, 2017
@akitada akitada force-pushed the linux_net_cmds_path branch 2 times, most recently from 74d5358 to 68c1691 Compare April 25, 2017 18:48
To ensure shell_out can find binaries.

Signed-off-by: Akira Kitada <akitada@gmail.com>
@akitada akitada changed the title WIP: Do not assume networking commands are in the $PATH Inject sane paths into shell_out Apr 25, 2017
@akitada
Copy link
Contributor Author

akitada commented Apr 25, 2017

@tas50 Updated patch to inject sane paths, as in shell_out in Chef.

@tas50 tas50 merged commit 4540908 into chef:master Apr 25, 2017
@tas50
Copy link
Contributor

tas50 commented Apr 25, 2017

Thanks for putting this together

@akitada akitada deleted the linux_net_cmds_path branch April 25, 2017 20:00
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants