Project

General

Profile

Bug #14307

change katello id resolver to not use 'name' parameters

Added by Justin Sherrill about 3 years ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

In hammer foreman the id resolver defaults to passing:

search: {name: 'foo'}

to perform the id resolving. For various historical reasons in katello we pass:

name: 'foo'

As a result for any foreman entity we have to do this:

https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/id_resolver.rb#L128-L138

Which is not ideal. We should just be consistent with foreman now.

Also available in: Atom PDF