Project

General

Profile

Bug #31609

"hammer host update --id <id> --owner-id <id>" does not set new owner

Added by Oleh Fedorenko 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

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

Description of problem:

Updating the owner of a host via

  1. hammer host update --id <host_id> --owner-id <owner_id>

returns "Host updated." but changes are not applied.

Version-Release number of selected component (if applicable):

tfm-rubygem-hammer_cli-2.1.2-1

How reproducible:

  1. hammer host info --id 30 | grep 'Owner Id'
    Owner Id: 22
  1. hammer host update --id 30 --owner-id 4
    Host updated.
  1. hammer host info --id 30 | grep 'Owner Id'
    Owner Id: 22

Actual results:

owner_id 22 is still assigned to host_id 30

Expected results:

owner_id 4 should be assigned to host_id 30

Additional info:

Worked fine on Satellite 6.7.x.

Associated revisions

Revision 692aff48 (diff)
Added by Oleh Fedorenko 7 months ago

Fixes #31609 - Set new owner with host update (#556)

History

#1 Updated by Oleh Fedorenko 7 months ago

  • Triaged changed from No to Yes
  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 7 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/556 added

#3 Updated by The Foreman Bot 7 months ago

  • Fixed in Releases hammer-cli-foreman-2.4.0 added

#4 Updated by Oleh Fedorenko 7 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF