Actions
Bug #319
closed'verbose' query interface is arbitrary. requires 'yes' not '1' or 'true' or 'ok' or 'please'
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Search
Target version:
-
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".
Updated by Ohad Levy over 14 years ago
ok.. will you be willing to send a patch?
Updated by Ohad Levy almost 14 years ago
- Status changed from New to Closed
closing as its not relevant with the introduction of the rest search api
Actions