sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 217 forks source link

Use explicit ::File to fix FreeBSD support #332

Closed onlyhavecans closed 8 years ago

onlyhavecans commented 8 years ago

Without this Chef 12.12 and FreeBSD 10.3 gets the following error

================================================================================
Error executing action `create` on resource 'users_manage[sysadmin]'
================================================================================

NoMethodError
-------------
undefined method `exist?' for Chef::Provider::File:Class

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/users/providers/manage.rb:81:in `block (2 levels) in class_from_file'
/var/chef/cache/cookbooks/users/providers/manage.rb:58:in `block in class_from_file'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
chef-supermarket commented 8 years ago

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:

Please sign the CLA here.

onlyhavecans commented 8 years ago

The fact I changed my github name angered the CurryBot. I think I have resolved that though

iennae commented 8 years ago

@onlyhavecans Thanks so much! Appreciate the contribution.