Project

General

Profile

Bug #20433

Hammer hostgroup not updating by title when katello plugin is installed

Added by Tomáš Strachota about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1473534

Description of problem:

Hammer can't find hostgroup by --title in update command when hammer-cli-katello is installed.

[root@satellite ~]# hammer hostgroup list --search 'title ~ test'
---|---------|------------------|------------------|------------------------------------------------|------
ID | NAME | TITLE | OPERATING SYSTEM | ENVIRONMENT | MODEL
---|---------|------------------|------------------|------------------------------------------------|------
5 | test | HG2/test | | |
6 | test | HG2/test/test | | |
7 | test | hostgroup-1/test | | |
4 | test123 | test123 | RedHat 7.3 | KT_Default_Organization_Library_puppet_view_21 |
---|---------|------------------|------------------|------------------------------------------------|------

  1. hammer -d hostgroup update --domain-id 2 --title=HG2/test
    Could not update the hostgroup:
    Error: Could not find hostgroup, please set one of options --name, --title, --id.

Steps to Reproduce:
1. hammer hostgroup update --title 'HG2/test'

Actual results:
Could not update the hostgroup:
Error: Could not find hostgroup, please set one of options --name, --title, --id.

Expected results:
Hammer should find and update the hostgroup.

Additional info:
Without hammer-cli-katello hostgroup update works fine.

We can use --id 'ID' without issue. Name does not work as we have multiple names with different parents. Title is a valid option according to the help and the output of the command itself.

When creating, you create with a name + parent which equals title. As per the example, I can retrieve the titles but cannot pass these to the title argument to update.

Associated revisions

Revision a137840f (diff)
Added by Tomas Strachota about 4 years ago

Fixes #20433 - katello commands use searchables from foreman (#503)

History

#1 Updated by Tomáš Strachota about 4 years ago

  • Subject changed from Hammer hostgroup not updating by title when katello plugin is installed to Hammer hostgroup not updating by title when katello plugin is installed
  • Category set to Hammer
  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
  • Target version set to 1.17.0-RC2

#2 Updated by The Foreman Bot about 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/503 added

#3 Updated by Anonymous about 4 years ago

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

#4 Updated by Eric Helms about 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

Also available in: Atom PDF