[chef] Re: Issues with creating an ohai plugin


Chronological Thread 
  • From: John Alberts < >
  • To:
  • Subject: [chef] Re: Issues with creating an ohai plugin
  • Date: Tue, 29 Jan 2013 16:56:26 -0600

I'm not sure if this matters, but the examples all use symbols instead of strings for the keys and I've always used symbols as well.  I notice you have: customjava["java_home"] and customjava["result"].

John


On Tue, Jan 29, 2013 at 4:36 PM, Douglas Land < " target="_blank"> > wrote:
Hi all,

I apologize in advance because I'm guessing this is something dumb as
I'm pretty green to ruby. I'm trying to create a custom ohai plugin.
I've looked at examples and can't for the life of me figure out what
I'm doing wrong here:

https://github.com/looprock/ohai_plugins/blob/master/customjava.rb

When I try to query this I get:

knife node show cheftest.vast.com -a customjava -Fj
{
  "customjava": null
}

Any help would be greatly appreciated.



--
John Alberts



Archive powered by MHonArc 2.6.16.

§