summaryrefslogtreecommitdiffstats
path: root/glances/exports/glances_mqtt.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/exports/glances_mqtt.py')
-rw-r--r--glances/exports/glances_mqtt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/exports/glances_mqtt.py b/glances/exports/glances_mqtt.py
index 513e91c1..e64088d4 100644
--- a/glances/exports/glances_mqtt.py
+++ b/glances/exports/glances_mqtt.py
@@ -60,7 +60,7 @@ class Export(GlancesExport):
self.user = self.user or 'glances'
self.tls = (self.tls and self.tls.lower() == 'true')
- self.topic_structure = self.topic_structure.lower() or 'per-metric'
+ self.topic_structure = (self.topic_structure or 'per-metric').lower()
if self.topic_structure not in ['per-metric', 'per-plugin']:
logger.critical("topic_structure must be either 'per-metric' or 'per-plugin'.")
return None