Project

General

Profile

Actions

Bug #37924

closed

Hammer does not filter deb-packages correctly

Added by Markus Bucher about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Hammer commands that need to resolve deb-package names do not create correct API requests.

hammer content-view version incremental-update --debs thor,odin ...

This would result in the following API-request made:
[ INFO 2024-10-17T16:50:32 API] GET /katello/api/debs
[DEBUG 2024-10-17T16:50:32 API] Params: {
       "name" => "thor",
    :per_page => 1000,
        :page => 1
}

The API will return all deb-packages it has due to the incorrect parameters.

It needs to do :search => "name = \"odin\" or name = \"thor\"" instead.


Related issues 1 (0 open1 closed)

Related to Katello - Feature #31257: Make sure debian repositories support incremental-updates in pulpcoreClosedMarkus BucherActions
Actions

Also available in: Atom PDF