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

Fixes #35, implement fqdn_resolves? method #36

Merged
merged 2 commits into from Aug 31, 2015

Conversation

jtimberman
Copy link
Contributor

jtimberman pushed a commit to chef-cookbooks/chef-server that referenced this pull request Aug 27, 2015
The api_fqdn_resolves? method should use the new method that is in the chef-ingredient cookbook. It is implemented in that cookbook here:

- chef-cookbooks/chef-ingredient@14a54e9

Reference:

- chef-cookbooks/chef-ingredient#36
- https://github.com/chef-cookbooks/chef-ingredient/issue/35
@jtimberman
Copy link
Contributor Author

@chef-cookbooks/engineering-services

require 'resolv'
Resolv.getaddress(fqdn)
return true
rescue
Copy link
Contributor

Choose a reason for hiding this comment

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

We should rescue the specific ResolvError exception here.

@wrightp
Copy link

wrightp commented Aug 31, 2015

👍

1 similar comment
@schisamo
Copy link
Contributor

👍

jtimberman added a commit that referenced this pull request Aug 31, 2015
…lper

Fixes #35, implement fqdn_resolves? method
@jtimberman jtimberman merged commit c3be814 into master Aug 31, 2015
@jtimberman jtimberman deleted the jtimberman/fqdn-resolve-helper branch August 31, 2015 18:42
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.

None yet

3 participants