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

set attributes from recipes in a chef 11-compatible way #7

Merged
merged 1 commit into from
May 6, 2013

Conversation

anujbiyani
Copy link
Contributor

Fixes this warning:

WARN: Setting attributes without specifying a precedence is deprecated and will be
removed in Chef 11.0. To set attributes at normal precedence, change code like:
`node["key"] = "value"` # Not this
to:
`node.set["key"] = "value"` # This

Called from:
  cookbooks/papertrail/recipes/default.rb:81:in `from_file'
  gems_root/chef-10.20.0/lib/chef/mixin/from_file.rb:30:in `instance_eval'
  gems_root/chef-10.20.0/lib/chef/mixin/from_file.rb:30:in `from_file'

Also resolves #5

mheffner added a commit that referenced this pull request May 6, 2013
set attributes from recipes in a chef 11-compatible way
@mheffner mheffner merged commit 9cc0f2c into papertrail:master May 6, 2013
@mheffner
Copy link
Contributor

mheffner commented May 6, 2013

Oops, missed this earlier. Thanks for the PR!

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.

Fix deprecated node[] set
2 participants