Bug #319
'verbose' query interface is arbitrary. requires 'yes' not '1' or 'true' or 'ok' or 'please'
| 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".
