Project

General

Profile

Actions

Bug #319

closed

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

Added by Dis Connect almost 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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".

Actions #1

Updated by Ohad Levy over 13 years ago

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

Actions #2

Updated by Ohad Levy almost 13 years ago

  • Status changed from New to Closed

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

Actions #3

Updated by Tomer Brisker over 5 years ago

  • Category changed from 19 to Search
Actions

Also available in: Atom PDF