mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
Add CallbackAPIversion for MQTT export
Due to the recent update of paho-mqtt to V2.0.0 which requires API versioning, addition of callback_api_version in paho.Client
This commit is contained in:
parent
c591461fde
commit
2e6bcc0758
@ -65,7 +65,7 @@ class Export(GlancesExport):
|
||||
if not self.export_enable:
|
||||
return None
|
||||
try:
|
||||
client = paho.Client(client_id='glances_' + self.hostname, clean_session=False)
|
||||
client = paho.Client(callback_api_version=2, client_id='glances_' + self.hostname, clean_session=False)
|
||||
client.username_pw_set(username=self.user, password=self.password)
|
||||
if self.tls:
|
||||
client.tls_set(certifi.where())
|
||||
|
Loading…
Reference in New Issue
Block a user