Improves error detection

This commit is contained in:
Pierre Lannoy 2024-03-12 11:09:34 +01:00
commit 9fa51c0294
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31

View file

@ -12,7 +12,7 @@ class LLDP():
self.output = output self.output = output
else: else:
self.output = subprocess.getoutput('lldpctl -f keyvalue') self.output = subprocess.getoutput('lldpctl -f keyvalue')
self.data = None #self.parse() self.data = self.parse()
def parse(self): def parse(self):
output_dict = {} output_dict = {}