Closed stevendanna closed 9 years ago
@stevendanna Would you mind adding it to all the resources too? Thats the recommendation (I think)
Also, we either need to bump the dependent version of chef up to ~> 12.3
or make this backwards compatible to versions before provides
was supported.
Although, I can't figure out when that keyword was added.... The CHANGELOG doesn't have a specific entry. I think https://github.com/chef/chef/pull/3374 is the appropriate PR.
Seems like it'd be a good idea to import the .travis.yml
from chef-provisioning
and run the specs against all the Chef versions.
@stevendanna Would you mind adding it to all the resources too? Thats the recommendation (I think)
Really? I'm starting to think that the architects of the new Resource/Provider patterns need to write canonical examples for what these need to look like. Perhaps they already exists?
@randomcamel I don't know that those are needed in the resources. The thing that warns is when a resource doesn't have resource_name
- as the warning messages indicate.
I think we're okay because of lines like this:
https://github.com/chef/cheffish/blob/ssd/warning/lib/chef/resource/chef_acl.rb#L5
Paging @jkeiser and @lamont-granquist
Yeah, I'm surprised self.resource_name = 'blah'
is not clearing the warning for the LWRP. That sounds like I missed a spot for warning clearage.
I'm going to go ahead and merge this - we threw out a bunch of improvement ideas but those all need to be filed as new bugs. Lets not scope creep this. Thanks @stevendanna !
LGTM :shipit: