edgehog-device-manager / edgehog

Easily manage your IoT device fleet with Edgehog at once. Get information on device status, deploy updates, geolocate your devices and much more!
Apache License 2.0
34 stars 21 forks source link

containers: fix `send_create_image_request` update action #671

Closed lusergit closed 2 weeks ago

lusergit commented 2 weeks ago

Currently the update action in L33-L53 of send_create_image_request fetches the image and the credentials from the changeset. This should not work, the correct approach is to use Ash.Changeset.fetch_argument (see send_create_deployment L38-L39). Moreover the action in device.ex L244-L260 should not need the image credentials as they can be fetched from the Image argument itself

noaccOS commented 2 weeks ago

closed by #672