facebook/taste-tester

databags uploaded incorrectly in bundle mode

steelcowboy opened this issue · 0 comments

Per https://github.com/chef/chef/blob/61a11902ab814aad3625eb4da7e3345d63ee7c09/knife/lib/chef/knife/data_bag_from_file.rb#L64, the local folder should be called data_bags.

However, here we are uploading it as databag:

populate(
stream, writer, TasteTester::Config.relative_databag_dir,
'databag'
)

This causes fetching databags with the library to fail: https://github.com/chef/chef/blob/61a11902ab814aad3625eb4da7e3345d63ee7c09/lib/chef/data_bag.rb#L140