Bug #3001

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

Added by Martin Bacovsky about 4 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:API
Target version:Sprint 21
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-
Release1.5.0Release relationshipAuto

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 3 years ago

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

History

#1 Updated by Dominic Cleal almost 4 years ago

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

#2 Updated by Dominic Cleal over 3 years ago

  • Target version set to Sprint 20

#3 Updated by Daniel Lobato Garcia over 3 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 3 years ago

  • Project changed from Hammer CLI to Foreman
  • Category set to API
  • Status changed from New to Ready For Testing
  • Assigned To 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 3 years ago

  • Release set to 1.5.0

#6 Updated by Dmitri Dolguikh over 3 years ago

  • Target version changed from Sprint 20 to Sprint 21

#7 Updated by Daniel Lobato Garcia over 3 years ago

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

Also available in: Atom PDF