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

Merged
merged 1 commit into from May 6, 2013

Projects

None yet

2 participants

@anujbiyani

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

Oops, missed this earlier. Thanks for the PR!

@sentience sentience referenced this pull request Nov 10, 2014
Closed

Fix deprecated node[] set #5

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