[chef-dev] Issue with databags on Chef Solo


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef-dev] Issue with databags on Chef Solo
  • Date: Sun, 16 Feb 2014 06:54:29 -0800 (PST)

While working up some chefspec tests today, I ran into an issue while trying 
to
mock some databags. I am getting a 'TypeError: can't convert Array into String
from
C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/chef-11.10.0-x86-mingw32/lib/chef/data_bag.rb:108:in
`directory?''

I reviewed
https://github.com/opscode/chef/blob/master/lib/chef/data_bag.rb#L108 and see
its checking `unless File.directory?(Chef::Config[:data_bag_path])`, however
based on the contents of
https://github.com/opscode/chef/blob/master/lib/chef/config.rb, it feels to me
(a guy not all that skilled in Ruby), that an Array is an acceptable data 
type,
however the databag loader is expecting a string under Chef solo. Am I reading
this, and is this a bug that I should open a ticket for?


  • [chef-dev] Issue with databags on Chef Solo, davidpetzel, 02/16/2014

Archive powered by MHonArc 2.6.16.

§