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

Newlines not being added between entries #44

Closed westeras closed 8 years ago

westeras commented 9 years ago

I am attempting to add 7 entries to the known hosts file. The first 6 are concatenated onto a single line in the hosts file, with the last one being given its own line. Obviously this prevents host verification from happening for all but the last host. I checked out the v2.0.0 release commit and it works as it's supposed to, so the bug has been introduced somewhere between now and then.

westeras commented 9 years ago

This is with Chef 11 and on RHEL 6.7

popsikle commented 8 years ago

Ruby2 moved the $INPUT_RECORD_SEPERATOR variable to the std 'English' lib. You can fix the resource by adding alias $INPUT_RECORD_SEPERATOR $/ if $INPUT_RECORD_SEPERATOR.nil? to line 46

iennae commented 8 years ago

@westeras can you verify that you are still seeing this behavior with the latest version of the cookbook? I think it's ok at this point.

Thanks!

westeras commented 8 years ago

Hi Jennifer, it's actually been a long while since I have used this cookbook or even chef in general (project change) but if I remember correctly I followed the advice of the other reply on this thread and that fixed the problem.

On Jul 16, 2016, at 1:30 AM, Jennifer Davis notifications@github.com wrote:

@westeras can you verify that you are still seeing this behavior with the latest version of the cookbook? I think it's ok at this point.

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

iennae commented 8 years ago

@westeras Thanks for the update! I appreciate your feedback. As I'm seeing a change in the output, (as we're using the English lib now) I'm going to go ahead and close this. If you find yourself using chef again, and running into this problem, please feel free to reopen. Thanks!