diff --git a/backend/lib/edgehog/containers/deployment_ready_action.ex b/backend/lib/edgehog/containers/deployment_ready_action.ex index fd944bcc0..3643aa5bd 100644 --- a/backend/lib/edgehog/containers/deployment_ready_action.ex +++ b/backend/lib/edgehog/containers/deployment_ready_action.ex @@ -35,7 +35,13 @@ defmodule Edgehog.Containers.DeploymentReadyAction do argument :deployment, :map - change manage_relationship(:deployment, on_no_match: {:create, :deploy}, on_match: :ignore) + change manage_relationship(:deployment, + on_lookup: :relate, + use_identities: [:_primary_key, :release_instance], + on_no_match: {:create, :deploy}, + on_match: :ignore + ) + change ManualActions.DeploymentReadyActionAddRelationship end