fix(python.d.plugin): fix plugin exit if no python found (#18747)
Ilya Mashchenko committed
Oct 10, 2024 at 17:26 UTC
c4d111e93784607786102a748b7599003a0ad760
1 file changed
+2
-1
src/collectors/python.d.plugin/python.d.plugin.in
+2
-1
@@ -12,7 +12,8 @@ do
12
done
13
if [ "$pybinary" = "" ]
14
then
15
- echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM"
15
+ echo 1>&2 "python.d ERROR: python is not installed on this system"
16
+ echo "EXIT"
17
exit 1
18
fi
19
exec "$pybinary" "$0" "${filtered[@]}" # '''