Bug #3001

host facts do not allow search by id (just by name)

Added by Martin Bacovsky almost 5 years ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Daniel Lobato Garcia
Category:API
Target version:1.5.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:

Description

This is issue probably in api or routes and needs further investigation. --id was temporarily disabled

Associated revisions

Revision e44f5c1c
Added by Daniel Lobato Garcia over 4 years ago

fixes #3001 - Facts searchable by both host id and name

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)

#2 Updated by Dominic Cleal over 4 years ago

  • Target version set to 1.9.1

#3 Updated by Daniel Lobato Garcia over 4 years ago

"results": {
  "myhost.localdomain.1": {
    "afact": "23" 
  }
  "myhost2.localdomain.1": {
    "afact": 24
  }
}

is the current way facts come from the API, so there is certainly no way of using the ID to search in Hammer without changing the API.

#4 Updated by Daniel Lobato Garcia over 4 years ago

  • Project changed from Hammer CLI to Foreman
  • Category set to API
  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia

https://github.com/theforeman/foreman/pull/1238

Moving this to Foreman as the problem comes from the API, not Hammer.

#5 Updated by Dominic Cleal over 4 years ago

  • Legacy Backlogs Release (now unused) set to 4

#6 Updated by Dmitri Dolguikh over 4 years ago

  • Target version changed from 1.9.1 to 1.9.0

#7 Updated by Daniel Lobato Garcia over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF