chef / cheffish

Resources and tools for testing and interacting with Chef and Chef Server.
Apache License 2.0
38 stars 28 forks source link

Override to_h to call to_hash method. #79

Closed mikenairn closed 7 years ago

mikenairn commented 9 years ago

Fixes an issue where to_h returns nil instead of a hash.

irb(main):003:0> require 'cheffish'
irb(main):004:0> mc = Cheffish::MergedConfig.new
irb(main):005:0> mc.to_h
=> nil
ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0]

Prevents aws local balancer creation from working properly https://github.com/chef/chef-provisioning-aws/blob/master/lib/chef/provisioning/aws_driver/driver.rb#L123

chef-supermarket commented 9 years ago

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.

GitHub Users Who Are Not Authorized To Contribute

The following GitHub users do not appear to have signed a CLA:

Please sign the CLA here.

chef-supermarket commented 9 years ago

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

lamont-granquist commented 7 years ago

sort of feel the same way that this should just be a Chef::Mash, but it is super-simple so 👍