Project

General

Profile

Bug #319

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

Added by Dis Connect almost 9 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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".

History

#1 Updated by Ohad Levy over 8 years ago

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

#2 Updated by Ohad Levy about 8 years ago

  • Status changed from New to Closed

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

#3 Updated by Tomer Brisker 7 months ago

  • Category changed from 19 to Search

Also available in: Atom PDF