Fix region detection (#11)
Fix region detection (#11)

Check more thoroughly if the keys exist.

Also, ohai puts the detected ec2 AZ in node['ec2']['availability_zone'], so pull
the value from there.

Co-authored-by: Lee Garrett <7b9e5389e27ae9b639c60457d9e9f99cbdc04905@rocketjump.eu>
meringu/code_deploy