Bug #11279
hammer cli problems with --owner when setting owner-type to Usergroup
Difficulty:
Triaged:
Yes
Description
I'm trying to set all hosts to the owner-type Usergroup and a specifiek name usergroup with the following command:hammer host update --name host01 --owner-type Usergroup --owner foremanAdmins
This doesn't work because it tries to lookup foremanAdmins as a user which ofcourse doesn't exist.
Looking up the ID of foremanAdmins and change the command to:hammer host update --name host01 --owner-type Usergroup --owner-id 4
makes it work
Associated revisions
History
#1
Updated by Joop van de Wege almost 7 years ago
Forgot to add: I'm using Foreman-1.8.2 on Centos6
#2
Updated by Dominic Cleal almost 7 years ago
- Project changed from Foreman to Hammer CLI
- Category set to Foreman commands (obsolete)
#3
Updated by Tomáš Strachota about 4 years ago
- Category changed from Foreman commands (obsolete) to Hosts
#4
Updated by yifat makias over 2 years ago
- Triaged changed from No to Yes
#5
Updated by Shira Maximov over 2 years ago
- In Kanboard set to yes
#6
Updated by yifat makias over 2 years ago
- Assignee set to yifat makias
- Status changed from New to Assigned
#7
Updated by The Foreman Bot over 2 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/501 added
#8
Updated by The Foreman Bot over 2 years ago
- Fixed in Releases hammer-cli-foreman-2.1.0 added
#9
Updated by Anonymous over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-foreman|b0d33f377b6b2248e79e7845454ae07e5c01e7be.
Fixes #11279 - Fixed updating host owner when ownertype is Usergroup (#501)