mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Don't use Enum in snmp-scan.py (#7036)
This commit is contained in:
committed by
Neil Lathwood
parent
e8282a4b6b
commit
b36d3d3408
@ -34,8 +34,6 @@ from subprocess import check_output, CalledProcessError
|
||||
from sys import stdout
|
||||
from time import time
|
||||
|
||||
from enum import Enum
|
||||
|
||||
try:
|
||||
from ipaddress import ip_network, ip_address
|
||||
except:
|
||||
@ -45,7 +43,7 @@ except:
|
||||
Result = namedtuple('Result', ['ip', 'hostname', 'outcome', 'output'])
|
||||
|
||||
|
||||
class Outcome(Enum):
|
||||
class Outcome:
|
||||
UNDEFINED = 0
|
||||
ADDED = 1
|
||||
UNPINGABLE = 2
|
||||
|
Reference in New Issue
Block a user