mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve text when ipaddress module is missing (#7043)
This commit is contained in:
committed by
Neil Lathwood
parent
fabf0c54f4
commit
fb121923b0
@@ -37,7 +37,9 @@ from time import time
|
||||
try:
|
||||
from ipaddress import ip_network, ip_address
|
||||
except:
|
||||
print('Could not import ipaddress module. Please install python2-ipaddress.')
|
||||
print('Could not import ipaddress module. Please install python-ipaddress or use python3 to run this script')
|
||||
print('Debian/Ubuntu: apt install python-ipaddress')
|
||||
print('RHEL/CentOS: yum install python-ipaddress')
|
||||
exit(2)
|
||||
|
||||
Result = namedtuple('Result', ['ip', 'hostname', 'outcome', 'output'])
|
||||
|
Reference in New Issue
Block a user