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

Fix windows 2008 hostname truncation #554

Merged
merged 1 commit into from
Jun 24, 2015
Merged

Conversation

craigbookwalter
Copy link
Contributor

On Windows 2008 R2 (and possibly other versions of Windows), node['hostname'] returns only the first 15 characters of the hostname--this breaks for machines with hostnames longer than 15 chars. This commit changes the WMI attribute that populates node['hostname'] to be one that provides the full hostname. The truncated version is preserved in machinename.

…stname'] returns only the first 15 characters of the hostname--this breaks for machines with hostnames longer than 15 chars. This commit changes the WMI attribute that populates node['hostname'] to be one that provides the full hostname. The truncated version is preserved in 'machinename'.
@chef-supermarket
Copy link

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.

GitHub Users Who Are Not Authorized To Contribute

The following GitHub users do not appear to have signed a CLA:

  • @involucelate

Please sign the CLA here.

@chef-supermarket
Copy link

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

@thommay
Copy link
Contributor

thommay commented Jun 8, 2015

ping @chef/client-windows

@ksubrama
Copy link

DNSHostName seems to return the right thing on my computer and that property has been available since Win 2003+. I'm ok with this change.

👍

thommay added a commit that referenced this pull request Jun 24, 2015
Fix windows 2008 hostname truncation
@thommay thommay merged commit f744348 into chef:master Jun 24, 2015
@tas50 tas50 added the Bug label Nov 30, 2015
@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants