-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Deprecated feature used, fix before chef 13 #253
Comments
it appears that application_name is a reserved keyword in chef 13. the fix On Tue, Mar 1, 2016 at 12:59 PM, Spencer Owen [email protected]
|
From my testing, it appears that more than a simple rename is needed. I changed all instances of
This will take more investigation. |
Ah this is because we are calling: |
Adding a final def application_name_check
if !new_resource.derp_name.include?('/') && !new_resource.derp_name.end_with?('/')
new_resource.derp_name("#{new_resource.derp_name}/").to_s
elsif new_resource.derp_name.chomp('/').include?('/') && new_resource.derp_name.end_with?('/')
new_resource.derp_name("#{new_resource.derp_name}".chomp('/')).to_s
else
new_resource.derp_name("#{new_resource.derp_name}").to_s
end
end |
Looks good to me, I think all we need is the else not the name change. Put in a pull request whenever you verify. |
In testing the chef-client 12.8.0 prerelease (12.7.2 is the current latest stable), I'm getting the following warnings about deprecated features.
The offending line is here:
https://github.com/chef-cookbooks/iis/blob/master/providers/vdir.rb#L123
And the line in chef is here:
https://github.com/chef/chef/blob/a030711a57e126f58b2e897c915d430e67cb7d13/lib/chef/property.rb#L276
I've spent a few minutes trying to figure out how to fix this, but it is a little above my ruby abilities.
The text was updated successfully, but these errors were encountered: