chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::DataCollector::ResourceReport#resource_identity

We should be able to call the identity of a resource safely, but there
is an edge case where resources that have a lazy property that is both
the name_property and the identity property, it will thow a validation
exception causing the chef-client run to fail. We are not fixing this
case since Chef is actually doing the right thing but we are making the
ResourceReporter smarter so that it detects the failure and sends a
message to the data collector containing a static resource identity
since we were unable to generate a proper one.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/data_collector/resource_report.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--DataCollector--ResourceReport-resource_identity-for-pr


# Commit to git

git add lib/chef/data_collector/resource_report.rbgit commit -m "better docs for Chef::DataCollector::ResourceReport#resource_identity"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Chef--DataCollector--ResourceReport-resource_identity-for-pr

hub pull-request


# Celebrate!