mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add python validation fix suggestions (#11563)
* add python fixes * re-order python requirements so most important deps show first. * Only check dependencies if we are running as the poller user
This commit is contained in:
@@ -13,6 +13,7 @@ target = os.path.realpath(os.path.dirname(__file__) + '/../requirements.txt')
|
||||
|
||||
with open(target, 'r') as file:
|
||||
requirements = file.read().rstrip().split("\n")
|
||||
requirements.reverse() # reverse so the most important ones show first
|
||||
try:
|
||||
pkg_resources.require(requirements)
|
||||
except DistributionNotFound as req:
|
||||
|
Reference in New Issue
Block a user