Hi Tyler,
I am using chef client 11.18.0 and chef solo for my development.
C:\Users\sachkkum\chef-repo>knife data bag show credentials WinTest -z --secret-file D:\Secret_key_Win\encrypted_data_bag_secret
id: WinTest
password: sachin
username: Admin
C:\Users\sachkkum\chef-repo>
these are the same credentials which I had previously set while creating databag.
I don't understand why I am getting this error,
[2015-02-18T13:21:11+05:30] FATAL: Chef::Exceptions::ValidationFailed: Data Bag Items must contain a Hash or Mash!
I my recipe , I am only using
#secret = Chef::EncryptedDataBagItem.load_secret('D:\Secret_key_Win\encrypted_data_bag_secret')
win_cred=Chef::EncryptedDataBagItem.load("credentials","WinTest")
win_username=win_cred["username"]
win_passwd=win_cred["password"]