From 0155c29fcc11e9fffaf4d9fe1caf5e86b1ab82d9 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Fri, 15 Nov 2024 14:08:04 +0100 Subject: [PATCH] Fixed Pylint too-many-public-methods error --- modules/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/device.py b/modules/device.py index d1a19a0..5da8a16 100644 --- a/modules/device.py +++ b/modules/device.py @@ -305,7 +305,7 @@ class PhysicalDevice(): # Delete host should it exists self.zabbix.host.delete(self.zabbix_id) e = f"Host {self.name}: Deleted host from Zabbix." - self.zeroize_cf() + self._zeroize_cf() self.logger.info(e) self.create_journal_entry("warning", "Deleted host from Zabbix") except APIRequestError as e: @@ -313,7 +313,7 @@ class PhysicalDevice(): self.logger.error(message) raise SyncExternalError(message) from e - def zeroize_cf(self): + def _zeroize_cf(self): """Sets the hostID custom field in Netbox to zero, effectively destroying the link""" self.nb.custom_fields[device_cf] = None