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

Make sure ansible-doc work when stdin is not a tty #9809

Merged
merged 2 commits into from Dec 16, 2014

Conversation

mscherer
Copy link
Contributor

Fix #9695

This can be used from another non interactive software, see ansible#9695
for details.
(less) 2> /dev/null would fail if stdin is /dev/null.
Sinceless --version do not read anything from stdin,
it is perfect for seeing if the software exist or not.

Also replace the whole os system detection by directly
using subprocess ( as we use it elsewhere, we already
depend on it ).
abadger added a commit that referenced this pull request Dec 16, 2014
Make sure ansible-doc work when stdin is not a tty
@abadger abadger merged commit f998e65 into ansible:devel Dec 16, 2014
@abadger
Copy link
Contributor

abadger commented Dec 16, 2014

Thanks for the fix!

Merged

Hi!

This has been merged in, and will also be included in the next major release.

If you or anyone else has any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular
issue is resolved.

Thank you!

@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
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.

ansible-doc get_module_list_text breaks if not on tty
2 participants