Project

General

Profile

Actions

Refactor #191

closed

Query should return all hosts, not just recent.

Added by Bash Shell over 14 years ago. Updated about 6 years ago.

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

Description

The "find_hosts" method for query uses this following line of code:

list = Host.recent.with_class(k).send(state).map(&:name)

If a person queries Foreman for certain facts, this will only returns "recent" hosts having those facts.

If a host has no recent reports, it won't be included.

I'm not sure what is the rationale behind this.

Wouldn't it be better if a query returns ALL hosts matching the given facts and classes regardless of recent reports?


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #184: Query 'state' doesn't workClosedOhad LevyActions
Has duplicate Foreman - Bug #188: Fact, Class, State combined filter doesn't workClosed03/23/2010Actions
Actions

Also available in: Atom PDF