Closed rylarson closed 7 years ago
So this is pretty core to how ridley was built - that it will try and make as few calls as possible so as to not block your application. So I'm going to close this as working as intended.
If you call all
on a data bag item, how does it make any sense for it to return a completely invalid object where the fields are all nil except for id? How is the data bag item case any different from any other Chef API resource? I don't think any sane person would consider this expected behavior.
I noticed some strange behavior today. Ridley appears to only return the
id
of the data bag item when you calldata_bag.item.all
. When you usedata_bag.item.find()
, it works as expected and returns the entire data bag item.Here is how to reproduce using chef-zero and the default chef-zero
knife.rb
config: