Actions
Bug #188
closedFact, Class, State combined filter doesn't work
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
irb(main):006:0> gethosts(query = { "fact" => { "kernel" => "Linux" }, "state" => "all"}).length
=> 205
irb(main):007:0> gethosts(query = { "fact" => { "kernel" => "Linux" }, "class" => "memcached" , "state" => "all"}).length
NoMethodError: undefined method `length' for nil:NilClass
from (irb):7
(web UI still shows 15 hosts that should match that test)
Updated by Ohad Levy over 14 years ago
can you confirm this still happens after the fix for #191?
Updated by Dis Connect over 14 years ago
- Status changed from New to Closed
That fixed it.
irb(main):003:0> gethosts(query = { "fact" => { "kernel" => "Linux" }, "class" => "memcached" , "state" => "all"}).length => 15 irb(main):004:0> gethosts(query = { "fact" => { "kernel" => "Linux" }, "class" => "memcached" }).length NoMethodError: undefined method `length' for nil:NilClass from (irb):4
Actions