Project

General

Profile

Bug #2472

"User is already in this hostgroup" when new hostgroup created by owner of an ancestor

Added by Dominic Cleal about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

a User is creating a new hostgroup
this user owns any of its ancestors
the Hostgroup creation will work, but shows an error "User is already in this Hostgroup", because indeed the User already owns that Hostgroup (that happens in line 61) and you are trying to add the User to this Hostgroup twice.

https://github.com/theforeman/foreman/pull/576

Associated revisions

Revision 7d8c71bc (diff)
Added by Daniel Lobato Garcia about 6 years ago

fixes #2472 - prevent duplicate users from hostgroup ancestors

History

#1 Updated by Dominic Cleal about 6 years ago

  • Assignee set to Daniel Lobato Garcia

#2 Updated by Daniel Lobato Garcia about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF