Project

General

Profile

Actions

Bug #34547

open

api show duplicate result when using filter (/discovered_hosts)

Added by Pawel S. about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

API:

p = foreman.get('/discovered_hosts')
for i in p['results']:

... print(i['id'])
562
533
513
432
362
361
289
287
284
283

p = foreman.get('/discovered_hosts?search=facts.is_virtual%3D+false')
for i in p['results']:

... print(i['id'])
562
533
432
432
362
361
289
287
287
284
284
283

pgsql:
foreman=> select id from hosts where type='Host::Discovered';
id
-------
432
562
289
287
284
283
361
533
362
513
(10 rows)


Files

Capture.JPG View Capture.JPG 45.4 KB same on web Pawel S., 03/02/2022 03:11 PM
Actions #1

Updated by Pawel S. about 2 years ago

Actions

Also available in: Atom PDF