Project

General

Profile

Actions

Bug #11279

closed

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

Added by Joop van de Wege almost 9 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

Also available in: Atom PDF