Skip to content

Conversation

carbonin
Copy link
Member

@carbonin carbonin commented Dec 1, 2015

Previously there was no new line character at the end of the file after we save it.

This would cause a problem if someone tried to append a line to the file in some way other than using this class.

@bdunne @abellotti

@abellotti
Copy link
Member

LGTM!! 👍

@carbonin
Copy link
Member Author

carbonin commented Dec 1, 2015

@abellotti Was this causing a specific issue for you or just something you noticed while testing other hostname-related stuff?

@abellotti
Copy link
Member

noticed it while testing IPA with appliance_console. I usually add the ipa server entry at the end of the host file and noticed its NL was gone after setting the hostname via appliance_console.

@gtanzillo
Copy link
Member

👍 LGTM

gtanzillo added a commit that referenced this pull request Dec 1, 2015
Added a new line at the end of /etc/hosts
@gtanzillo gtanzillo merged commit ef0a05a into ManageIQ:master Dec 1, 2015
@carbonin carbonin deleted the add_new_line_to_hosts_file branch February 12, 2016 18:12
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.

3 participants