Sample - host_search.py - Includes comments from hostname_file in output.csv #1168
Labels
bug 🐛
Something isn't working
code samples
Functioning sample code to get you started
enhancement 🌟
New feature or request
hosts
Hosts or Host Groups issues and questions
Describe the bug
When running host_search.py and including a file with hostnames, if there are comments, the script will attempt to query for hosts with the full comment included. Comments should instead be ignored.
To Reproduce
test$ cat hosts.txt #ubuntu hosts tester1-ubuntu
Expected behavior
Comments in text files containing hostnames are useful for administrators, and should be ignored by the script.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: