Skip to content

Commit

Permalink
Update execution controller with target_type
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Aug 25, 2023
1 parent 7f4c192 commit d7f08dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/wanda_web/controllers/v1/execution_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ defmodule WandaWeb.V1.ExecutionController do
execution_id: execution_id,
group_id: group_id,
targets: targets,
target_type: target_type,
env: env
} = Map.get(conn, :body_params)

Expand All @@ -122,6 +123,7 @@ defmodule WandaWeb.V1.ExecutionController do
execution_id,
group_id,
Target.map_targets(targets),
target_type,
env
) do
conn
Expand Down
1 change: 1 addition & 0 deletions lib/wanda_web/schemas/execution/start_execution_request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ defmodule WandaWeb.Schemas.StartExecutionRequest do
type: :array,
items: Target
},
target_type: %Schema{type: :string, description: "Execution target type"},
env: Env
},
required: [:execution_id, :group_id, :targets]
Expand Down

0 comments on commit d7f08dc

Please sign in to comment.