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.
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.