opscode/knife-ec2 — pull request #92 by felixpalmer (2012-11-27 15:18:36+00:00)
Title: Relax validation function in ec2_base.rb

When invoking the Ec2ServerCreate command from another plugin it isn't possible to just pass in the config like this:

knife_ec2 = Chef::Knife::Ec2ServerCreate.new
knife_ec2.config[:image] = image
knife_ec2.run

...as the validate function only checks if required options are present in the Chef::Config, even
though the code later overrides these in locate_config.

This change relaxes the validation function to also check whether a required key is in the config object