Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Created November 11, 2012 16:30
Show Gist options
  • Save lvnilesh/4055431 to your computer and use it in GitHub Desktop.
Save lvnilesh/4055431 to your computer and use it in GitHub Desktop.
deprecation warnings
I see some deprecation warnings re: chef 11
[2012-11-11T16:21:49+00:00] INFO: Running start handlers
[2012-11-11T16:21:49+00:00] INFO: Start handlers complete.
[2012-11-11T16:21:50+00:00] INFO: Application light-weight resource already initialized -- overriding!
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/resource.rb:768: warning: already initialized constant Application
[2012-11-11T16:21:50+00:00] 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:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:21:50+00:00] 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:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:21:50+00:00] 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:
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing'
[2012-11-11T16:21:50+00:00] INFO: Could not find previously defined grants.sql resource
[2012-11-11T16:21:50+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[2012-11-11T16:21:50+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment