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

merged 1 commit into from May 6, 2013


None yet

2 participants


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
`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 mheffner merged commit 9cc0f2c into librato:master May 6, 2013
Librato member

Oops, missed this earlier. Thanks for the PR!

@sentience sentience referenced this pull request Nov 10, 2014

Fix deprecated node[] set #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment