Project

General

Profile

Actions

Bug #20433

closed

Hammer hostgroup not updating by title when katello plugin is installed

Added by Tomáš Strachota over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
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.

Actions #1

Updated by Tomáš Strachota over 6 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
Actions #2

Updated by The Foreman Bot over 6 years ago

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

Updated by Anonymous over 6 years ago

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

Updated by Eric Helms over 6 years ago

  • translation missing: en.field_release set to 250
Actions

Also available in: Atom PDF