Skip to content

Conversation

carbonin
Copy link
Member

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer the positive case if line_num

@carbonin carbonin force-pushed the add_update_ip_for_hostname_to_hosts branch from dc1216e to f4edbbe Compare October 16, 2015 14:47
@miq-bot
Copy link
Member

miq-bot commented Oct 16, 2015

Checked commit carbonin@f4edbbe with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
2 files checked, 0 offenses detected
Everything looks good. 👍

@carbonin
Copy link
Member Author

Determined that this change is not necessary after discussion with @bdunne

@carbonin carbonin closed this Oct 16, 2015
@bdunne
Copy link
Member

bdunne commented Oct 16, 2015

The assumed use case was:
When changing IP address, update the hosts file by

  • finding the old IP - hostname line
  • replacing the old IP with the new IP
  • save file

Setting IP should have nothing to do with the hosts file.
Setting the hostname on the machine should update the hosts file by:

  • finding the line for 127.0.0.1
  • removing the old hostname
  • adding the new hostname

@carbonin carbonin deleted the add_update_ip_for_hostname_to_hosts branch November 13, 2015 20:17
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