chef-boneyard / push-jobs-cookbook

Development repository for Chef Cookbook push-jobs
https://supermarket.chef.io/cookbooks/push-jobs
Apache License 2.0
21 stars 43 forks source link

deprecated feature #96

Closed n3bojs4 closed 7 years ago

n3bojs4 commented 8 years ago

Cookbook version

3.2.0

Chef-client version

12.11.18

Platform Details

RHEL 7

Scenario:

Everything is ok, it's just a deprecated code

Expected Result:

No more warnings :)

Actual Result:

Deprecated features used!

An attempt was made to change version from :latest to nil by calling version(nil). In Chef 12, this does a get rather than a set. In Chef 13, this will change to set the value to nil. at 1 location:

marcencov commented 7 years ago

Ubuntu 14.04 - same deprecated warning. Chef version same - 12.11.18

Deprecated features used! An attempt was made to change version from :latest to nil by calling version(nil). In Chef 12, this does a get rather than a set. In Chef 13, this will change to set the value to nil. at 1 location:

How fix?

iennae commented 7 years ago

Thanks for reporting. We are working to refactor this code. This happens when the version isn't explicitly set.

iennae commented 7 years ago

This is fixed in 5.0.0 of the cookbook. Thanks again for reporting.