chef-cookbooks / ssh_known_hosts

Development repository for Chef Cookbook ssh_known_hosts
https://supermarket.chef.io/cookbooks/ssh_known_hosts
Apache License 2.0
72 stars 77 forks source link

prevent TypeError identified in COOK-3113 #8

Closed dpetzel closed 11 years ago

dpetzel commented 11 years ago

I was finding that on the RHEL5 Vagrant boxes, the call to ssh-keyscan -H #{new_resource.host} was returning an empty string, leading to a nil value for for the comment.

I'm not entirely sure what the most appropriate action to that command coming back empty is, but this PR will at least prevent the cookbook from killing the Chef run.