[chef] Re: knife node show json format squished


Chronological Thread 
  • From: John Alberts < >
  • To:
  • Subject: [chef] Re: knife node show json format squished
  • Date: Wed, 12 Jun 2013 22:28:56 -0500

me too!  I've noticed this recently too.  I'm not really sure when it started happening, so I can't really offer any details that would be helpful.  I'd love to hear if you find a solution.

-bash-3.2# which ruby
/usr/local/bin/ruby
-bash-3.2# ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
-bash-3.2# gem list chef

*** LOCAL GEMS ***

chef (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)
chef-expander (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)
chef-server (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)
chef-server-api (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)
chef-server-webui (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)
chef-solr (10.26.0, 10.24.4, 10.18.0, 10.16.2, 0.10.8, 0.10.4, 0.10.0)

Yes, yes, I know. I should clean these old gems up. :)

John


On Wed, Jun 12, 2013 at 8:35 PM, < " target="_blank"> > wrote:

Recently the node output I see went from a nice "fully-expanded" view of the
json to the json being not expanded, being "squished"... for lack of better
phrasing.

Does anyone happen to know what happened, or how to get the output back to
fully-expanded?


$ knife node show db01.stg.cherryporkleftovers.com -Fj -l
{
  "name": "db01.stg.cherryporkleftovers.com",
  "chef_environment": "staging1",
  "run_list": ["role[base]","role[database]"],
  "normal": {"repo":{"epel":{"key":"RPM-GPG-KEY-EPEL-6"},"percona":{"key":"RPM-GPG-KEY-percona"},"centos":{"key":"RPM-GPG-KEY-CentOS-5",..snip-the-squish
  "default": {"s3cmd":{"users":["root"],"userlist":["foo","baz"]},"boundary":{"bprobe":..snip-the-squish
snip


I'm not exactly sure what changed in my dev environment, and when it did.
FWIW I did try downgrading my chef 10.26.0 to 10.24.0 within my rvm, but that
changed nothing.


06/12 17:34[zahadum chefdev]$ which ruby
/home/kallen/.rvm/rubies/ruby-1.9.3-p429/bin/ruby
06/12 18:33[zahadum chefdev]$ gem list chef

*** LOCAL GEMS ***

chef (10.26.0, 10.24.0)






--
John Alberts



Archive powered by MHonArc 2.6.16.

§