mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -66,7 +66,7 @@ class Python extends BaseValidation
|
||||
preg_match('/\(python ([0-9.]+)\)/', `pip3 --version`, $matches);
|
||||
$pip = $matches[1];
|
||||
$python = implode('.', array_slice(explode('.', $version), 0, 2));
|
||||
if (version_compare($python, $pip, '!=')) {
|
||||
if ($pip && version_compare($python, $pip, '!=')) {
|
||||
$validator->fail("python3 ($python) and pip3 ($pip) versions do not match. This likely will cause dependencies to be installed for the wrong python version.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user