Skip to content

Commit

Permalink
Comments, var name
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Aug 15, 2024
1 parent 1f03651 commit 4daa2c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions zabbix_auto_config/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,13 +1769,12 @@ def do_update(self) -> None:

db_host = db_hosts[zabbix_hostname]

# Determine synced host groups for host
# Determine host groups to sync for host
# Sync host groups derived from its properties, siteadmins, sources, etc.
synced_hostgroup_names = set([self.config.hostgroup_all])
for _property in db_host.properties:
if _property in self.property_hostgroup_map:
synced_hostgroup_names.update(
self.property_hostgroup_map[_property]
)
for prop in db_host.properties:
if prop in self.property_hostgroup_map:
synced_hostgroup_names.update(self.property_hostgroup_map[prop])
for siteadmin in db_host.siteadmins:
if siteadmin in self.siteadmin_hostgroup_map:
synced_hostgroup_names.update(
Expand Down

0 comments on commit 4daa2c3

Please sign in to comment.