opscode-cookbooks/ssh_known_hosts — pull request #4 by LeeGraber (2013-02-06 19:56:43+00:00)
Title: need to call data_bag_item for supporting ssh_known_hosts data_bag

Calling data_bag just gives an array of strings with the name of each entry. Within the loop you have to call data_bag_item or else your code is trying to index into a string instead of getting a value from a hash