[chef] knife solo data bag - Data Bag Items must contain a Hash or Mash!


Chronological Thread 
  • From: Greg Barker < >
  • To: " " < >
  • Subject: [chef] knife solo data bag - Data Bag Items must contain a Hash or Mash!
  • Date: Thu, 9 Oct 2014 11:54:06 -0700

I am running into an error with knife solo data bag on Windows. I filed a bug for it but hadn't heard anything, wanted to see if anybody on the mailing list had run into this.

c:\my-chef-repo>knife solo data bag create test test -e vi
cygwin warning:
  MS-DOS style path detected: C:/Users/MYUSER~1/AppData/Local/Temp/knife-edit-20141001-1324-1s58ayi.json
  Preferred POSIX equivalent is: /cygdrive/c/Users/MYUSER~1/AppData/Local/Temp/knife-edit-20141001-1324-1s58ayi.json
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Created data_bag_item[test]

c:\my-chef-repo>knife solo data bag edit test test -e vi
ERROR: Chef::Exceptions::ValidationFailed: Data Bag Items must contain a Hash or Mash!
The same error also happens when I create a data bag on the server and then knife download it and try to edit it with knife solo. I'm able to create/edit data bags that exist solely on the server just fine, just knife solo data bag that is giving me trouble.

Thanks!
Greg


  • [chef] knife solo data bag - Data Bag Items must contain a Hash or Mash!, Greg Barker, 10/09/2014

Archive powered by MHonArc 2.6.16.

§