Project

General

Profile

Actions

Bug #11279

closed

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

Added by Joop van de Wege over 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
-
Difficulty:
Triaged:
Yes
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


Files

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
Actions #1

Updated by Joop van de Wege over 8 years ago

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

Actions #2

Updated by Dominic Cleal over 8 years ago

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

Updated by Tomáš Strachota almost 6 years ago

  • Category changed from Foreman commands (obsolete) to Hosts
Actions #4

Updated by yifat makias about 4 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by Shira Maximov about 4 years ago

  • In Kanboard set to yes
Actions #6

Updated by yifat makias about 4 years ago

  • Status changed from New to Assigned
  • Assignee set to yifat makias
Actions #7

Updated by The Foreman Bot about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases hammer-cli-foreman-2.1.0 added
Actions #9

Updated by Anonymous about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF