coderanger/pychef — pull request #6 by organicveggie (2012-02-01 22:56:21+00:00)
Title: Workaround when FQDN not defined

Hi,

We've found a few circumstances in our 0.9.14 Chef environment out at EC2 where node[:fqdn] is not defined. We've never managed to get to the bottom of the problem, but it causes pychef to crash. These commits introduce a method for checking if an attribute exists and provide a workaround for using the EC2 internal host name when the fqdn attribute is not defined.

-Sean