Project

General

Profile

Bug #11279

hammer cli problems with --owner when setting owner-type to Usergroup

Added by Joop van de Wege over 6 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
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

hammer-owner-name.txt hammer-owner-name.txt 10.5 KB debug output using owner-name Joop van de Wege, 08/04/2015 04:19 AM
hammer-owner-id.txt hammer-owner-id.txt 13.3 KB debug output using owner-id Joop van de Wege, 08/04/2015 04:19 AM

Associated revisions

Revision b0d33f37 (diff)
Added by Yifat Makias almost 2 years ago

Fixes #11279 - Fixed updating host owner when ownertype is Usergroup (#501)

History

#1 Updated by Joop van de Wege over 6 years ago

Forgot to add: I'm using Foreman-1.8.2 on Centos6

#2 Updated by Dominic Cleal over 6 years ago

  • Project changed from Foreman to Hammer CLI
  • Category set to Foreman commands (obsolete)

#3 Updated by Tomáš Strachota over 3 years ago

  • Category changed from Foreman commands (obsolete) to Hosts

#4 Updated by yifat makias almost 2 years ago

  • Triaged changed from No to Yes

#5 Updated by Shira Maximov almost 2 years ago

  • In Kanboard set to yes

#6 Updated by yifat makias almost 2 years ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned

#7 Updated by The Foreman Bot almost 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 almost 2 years ago

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

#9 Updated by Anonymous almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF