diff --git a/heimdallr/entry_points/publisher.py b/heimdallr/entry_points/publisher.py index 25054a2..e2c8f30 100644 --- a/heimdallr/entry_points/publisher.py +++ b/heimdallr/entry_points/publisher.py @@ -103,9 +103,12 @@ def job(): """description""" sensor_data[HOSTNAME]["gpu_stats"] = pull_gpu_info() sensor_data[HOSTNAME]["du_stats"] = pull_disk_usage_info() + + a = sensor_data.as_dict() + assert a is dict client.publish( ALL_CONSTANTS.MQTT_TOPIC, - json.dumps(sensor_data.as_dict()), + json.dumps(a), ALL_CONSTANTS.MQTT_QOS, )