From fd491a3141e5b06150cfb1eddac94ed4cf571aa1 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Apr 29 2022 16:16:20 +0000 Subject: Ensuring integer for mqtt port, needed by paho-mqtt Signed-off-by: Fabian Arrotin --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 63dc517..b6feb84 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -161,7 +161,7 @@ def mqtt_publish(topic, message): return mqtt_host = pagure_config.get("MQTT_HOST") - mqtt_port = pagure_config.get("MQTT_PORT") + mqtt_port = int(pagure_config.get("MQTT_PORT")) mqtt_username = pagure_config.get("MQTT_USERNAME") mqtt_pass = pagure_config.get("MQTT_PASSWORD")