Actions
Bug #11741
closedConfig group host counter not incremented on host creation with association
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Description
When creating a host with a config group associated, the hosts counter on the config groups list is not updated. It does get updated if the config group is associated after the host is created.
It appears that the after_add hook in app/models/concerns/host_common.rb performs a search for hosts with the config group during the host creation, so this won't pick up the host that's in the process of being created.
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2696 added
- Pull request deleted (
)
Updated by Tomer Brisker over 8 years ago
- Status changed from Ready For Testing to New
- Assignee deleted (
Tom Caspy) - Pull request deleted (
https://github.com/theforeman/foreman/pull/2696)
Updated by Tomer Brisker about 8 years ago
- Status changed from New to Resolved
cached counters have been removed in #12193 and this should be resolved now as the count is calculated on the fly when needed.
Updated by Tomer Brisker about 8 years ago
- Related to Bug #12193: Deadlock occuring when creating host added
Actions