diff --git a/netbox_agent/lldp.py b/netbox_agent/lldp.py index a4c3fa9..51083f5 100644 --- a/netbox_agent/lldp.py +++ b/netbox_agent/lldp.py @@ -1,5 +1,6 @@ -import subprocess import logging +import subprocess + from netbox_agent.misc import is_tool diff --git a/netbox_agent/vendors/hp.py b/netbox_agent/vendors/hp.py index 30d8f07..e9cc991 100644 --- a/netbox_agent/vendors/hp.py +++ b/netbox_agent/vendors/hp.py @@ -12,7 +12,8 @@ class HPHost(ServerBase): def is_blade(self): blade = self.product.startswith("ProLiant BL") - blade |= self.product.startswith("ProLiant m") and self.product.endswith("Server Cartridge") + blade |= (self.product.startswith("ProLiant m") + and self.product.endswith("Server Cartridge")) return blade def _find_rack_locator(self):