Improves error detection

This commit is contained in:
Pierre Lannoy 2024-03-12 09:48:40 +01:00
commit 7342a04a5c
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31

View file

@ -6,7 +6,7 @@ from netbox_agent.misc import is_tool
class LLDP():
def __init__(self, output=None):
if not is_tool('lldpctl'):
if not is_tool('alldpctl'):
logging.debug('lldpd package seems to be missing or daemon not running.')
if output:
self.output = output