Fixed line too long and updated readme

This commit is contained in:
TheNetworkGuy 2025-06-14 20:17:57 +00:00
parent 8fe7e5763b
commit ee6d13bfdf
2 changed files with 4 additions and 3 deletions

View File

@ -518,8 +518,8 @@ usermacro_sync = "full"
This will force a full usermacro sync on every run on hosts that have secret usermacros set. This will force a full usermacro sync on every run on hosts that have secret usermacros set.
That way, you will know for sure the secret values are always up to date. That way, you will know for sure the secret values are always up to date.
Keep in mind that NetBox (and the log output of this script) will show your secrets Keep in mind that NetBox will show your secrets in plain text.
in plain text. If true secrecy is required, consider switching to If true secrecy is required, consider switching to
[vault](https://www.zabbix.com/documentation/current/en/manual/config/macros/secret_macros#vault-secret) [vault](https://www.zabbix.com/documentation/current/en/manual/config/macros/secret_macros#vault-secret)
usermacros. usermacros.

View File

@ -854,7 +854,8 @@ class PhysicalDevice:
try: try:
# API call to Zabbix # API call to Zabbix
self.zabbix.hostinterface.update(updates) self.zabbix.hostinterface.update(updates)
e = f"Host {self.name}: updated interface with data {sanatize_log_output(updates)}." e = (f"Host {self.name}: updated interface "
f"with data {sanatize_log_output(updates)}.")
self.logger.info(e) self.logger.info(e)
self.create_journal_entry("info", e) self.create_journal_entry("info", e)
except APIRequestError as e: except APIRequestError as e: