Skip to content

Commit

Permalink
feat(ota): exposing optional update target of OTA
Browse files Browse the repository at this point in the history
Ota operations expose an optional `UpdateTarget`. It is a reference to
the update target that created the managed ota operation

Closes #356

Signed-off-by: Luca Zaninotto <[email protected]>
  • Loading branch information
lusergit committed Dec 6, 2024
1 parent e41244a commit df5086e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ defmodule Edgehog.OSManagement.OTAOperation do
attribute_public? false
allow_nil? false
end

has_one :update_target, Edgehog.UpdateCampaigns.UpdateTarget do
description """
The update target of an update campaing that created the managed
ota operation, if any.
"""

public? true
end
end

calculations do
Expand Down

0 comments on commit df5086e

Please sign in to comment.