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.
Actions