Created
April 29, 2013 08:59
-
-
Save sentience/5480507 to your computer and use it in GitHub Desktop.
Error running Opscode official DMG cookbook (v.1.0.0) on Chef 10.24.4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/cache/chef/cookbooks/dmg/resources/package.rb | |
================================================================================ | |
ArgumentError | |
------------- | |
wrong number of arguments (2 for 1) | |
Cookbook Trace: | |
--------------- | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb:734:in `const_defined?' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb:734:in `build_from_file' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:178:in `load_lwrp_resources' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:230:in `call' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:230:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:229:in `each' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:229:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:227:in `each' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:227:in `foreach_cookbook_load_segment' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:175:in `load_lwrp_resources' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:156:in `load_lwrps' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/run_context.rb:64:in `load' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:198:in `setup_run_context' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:418:in `do_run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/client.rb:176:in `run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application.rb:140:in `run_chef_client' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:274:in `run_application' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:267:in `loop' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application/client.rb:267:in `run_application' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/application.rb:72:in `run' | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/chef-client:26 | |
/usr/local/bin/chef-client:19:in `load' | |
/usr/local/bin/chef-client:19 | |
Relevant File Content: | |
---------------------- | |
/var/lib/gems/1.8/gems/chef-10.24.4/bin/../lib/chef/resource.rb: | |
727: end | |
728: | |
729: def self.build_from_file(cookbook_name, filename, run_context) | |
730: rname = filename_to_qualified_string(cookbook_name, filename) | |
731: | |
732: # Add log entry if we override an existing light-weight resource. | |
733: class_name = convert_to_class_name(rname) | |
734>> if Chef::Resource.const_defined?(class_name, false) | |
735: Chef::Log.info("#{class_name} light-weight resource already initialized -- overriding!") | |
736: old_class = Chef::Resource.send(:remove_const, class_name) | |
737: Chef::Resource.resource_classes.delete(old_class) | |
738: end | |
739: | |
740: new_resource_class = Class.new self do |cls| | |
741: | |
742: # default initialize method that ensures that when initialize is finally | |
743: # wrapped (see below), super is called in the event that the resource |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment