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

Fixed fqdn handling on debian/ubuntu #2254

Merged
merged 1 commit into from
Sep 25, 2013

Conversation

Caustic
Copy link

@Caustic Caustic commented Sep 22, 2013

The issue was that the old method simply didn't work.
This is what I expect the hosts file to have in it:

127.0.1.1   new.fqdn.com new

This is what would get applied before this patch:

127.0.1.1   new.fqdn.com new old.example.com old

Or this if the user didn't set an fqdn in the Vagrantfile:

127.0.1.1   host host old.example.com old

This patch fixes that.

The issue was that the old method simply didn't work.  When the hosts
file should look like:
    127.0.1.1   host.fqdn.com host
It looked like:
    127.0.1.1   host.fqdn.com host old.fqdn.com old
Or this if the user didn't set a fqdn
    127.0.1.1   host host old.fqdn.com old

This patch fixes that.
@Caustic
Copy link
Author

Caustic commented Sep 22, 2013

The original ticket I opened up was #2085.

Here is the initial commit:
13f8313

@mitchellh
Copy link
Contributor

Thanks! This looks great. merging it.

mitchellh added a commit that referenced this pull request Sep 25, 2013
guests/debian,ubuntu: Fixed fqdn handling
@mitchellh mitchellh merged commit d970c4e into hashicorp:master Sep 25, 2013
@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
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.

3 participants