fix tests

This commit is contained in:
Brian Martin 2020-01-20 12:07:05 -05:00
parent c2bcb13769
commit 346895eff3

View file

@ -377,6 +377,8 @@ class BumperMQTTServer_Plugin:
)
mqttserverlog.info(f"Bumper Authentication Success - Bot - SN: {username} - DID: {didsplit[0]} - Class: {tmpbotdetail[0]}")
authenticated = True
if authenticated and bumper.bumper_proxy_mode:
mqtt_server = bumper.config_proxyMode_getServerIP("mqtt_server","")
if mqtt_server:
proxymodelog.info(f"MQTT Proxy Mode - Using server {mqtt_server}")
@ -385,7 +387,6 @@ class BumperMQTTServer_Plugin:
proxymodelog.exception(f"MQTT Proxy Mode - Exiting due to no MQTT Server configured!")
exit(1)
if authenticated and bumper.bumper_proxy_mode:
proxymodelog.info(f"MQTT Proxy Mode - Proxy Bot to MQTT - Client_id: {client_id} - Username: {username}")
self.proxyclients[client_id] = BumperProxyModeMQTTClient(