Skip to content

Commit

Permalink
Move warning next to statement that caused it
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Jul 24, 2024
1 parent adabe2a commit 0321ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zabbix_auto_config/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,13 @@ def merge_sources(self) -> None:
break

source_hosts = source_hosts_map.get(hostname)
host = hosts.get(hostname)
if not source_hosts:
logging.warning(
"Host '%s' not found in source hosts table", hostname
)
continue

host = hosts.get(hostname)
host_action = self.handle_host(db_cursor, host, source_hosts)
actions[host_action] += 1

Expand Down

0 comments on commit 0321ed4

Please sign in to comment.