Bug #319

'verbose' query interface is arbitrary. requires 'yes' not '1' or 'true' or 'ok' or 'please'

Added by Dis Connect over 1 year ago. Updated 9 months ago.

Status:Closed Start:06/09/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Query interface
Target version:-
Backlog:No Difficulity:
Votes: 0

Description

I'll file a feature on the fact that its so limited ;) but:

irb(main):029:0* gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>'yes'})
=> [{"puppet.foo.com"=>{"facts"=>.....}}]
irb(main):030:0> gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>'true'})
=> ["puppet.foo.com"]
irb(main):031:0> gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>1})
=> ["puppet.foo.com"]
irb(main):032:0> gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>"ok"})
=> ["puppet.foo.com"]
irb(main):033:0> gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>"whynot"})
=> ["puppet.foo.com"]
irb(main):034:0> gethosts({"fact"=>{"hostname"=>"puppet"},"verbose"=>"absolutely"})
=> ["puppet.foo.com"]

I think 0/1 or true/false makes a ton more sense than "yes".

History

Updated by Ohad Levy over 1 year ago

ok.. will you be willing to send a patch?

Updated by Ohad Levy 9 months ago

  • Status changed from New to Closed
  • Backlog set to No

closing as its not relevant with the introduction of the rest search api

Also available in: Atom PDF