eclipse-symphony / symphony

Symphony project
MIT License
27 stars 17 forks source link

Update MQTT Target Provider's Status and Message #169

Closed jorchiu closed 2 months ago

jorchiu commented 2 months ago

Previously, an MQTT Target Provider component's summary spec would always return 9998 for its status and an empty message.

image

ret is assigned but never updated in the MQTT Target Provider: https://github.com/eclipse-symphony/symphony/blob/main/api/pkg/apis/v1alpha1/providers/target/mqtt/mqtt.go#L340

This PR updates ret in the MQTT Target Provider according to what the target returns: image