Correect issue (error message) concerning the Cloud plugin - Related to #2392

This commit is contained in:
nicolargo 2023-05-13 15:50:47 +02:00
parent 6ea9185ba2
commit ff504b9822
4 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@
# It is also possible to overwrite it in each plugin sections
refresh=2
# Does Glances should check if a newer version is available on PyPI ?
check_update=false
check_update=False
# History size (maximum number of values)
# Default is 1200 values (~1h with the default refresh rate)
history_size=1200

View File

@ -27,7 +27,7 @@ try:
PACKAGING_IMPORT = True
except Exception as e:
logger.error("Unable to import 'packaging' module ({}). Glances cannot check for updates.".format(e))
logger.warning("Unable to import 'packaging' module ({}). Glances cannot check for updates.".format(e))
PACKAGING_IMPORT = False
PYPI_API_URL = 'https://pypi.python.org/pypi/Glances/json'

View File

@ -15,7 +15,7 @@ influxdb>=1.0.0 # For InfluxDB < 1.8
influxdb-client; python_version >= "3.7" # For InfluxDB >= 1.8
kafka-python
netifaces
py3nvml; python_version >= "3.5"
packaging; python_version >= "3.7"
paho-mqtt
pika
podman; python_version >= "3.6"
@ -24,6 +24,7 @@ prometheus_client
pygal
pymdstat
pymongo; python_version >= "3.7"
py3nvml; python_version >= "3.5"
pysnmp
pySMART.smartx
python-dateutil

View File

@ -80,6 +80,7 @@ def get_install_extras_require():
# 'gpu' and 'sensors' ==> See below
}
if PY3:
extras_require['cloud'].append('packaging')
extras_require['export'].append('influxdb-client')
extras_require['export'].append('pymongo')
extras_require['gpu'] = ['py3nvml']