Skip to content

Commit 9ab57d3

Browse files
committed
pass variables to workspace select
1 parent a271ae9 commit 9ab57d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

image/actions.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ function set-init-args() {
217217
done
218218
fi
219219

220+
set-variable-args
221+
220222
if [[ -v OPENTOFU && $TERRAFORM_VER_MINOR -ge 8 ]]; then
221223
debug "Preparing variables for early evaluation"
222-
set-variable-args
223224
INIT_ARGS="$INIT_ARGS $VARIABLE_ARGS"
224225
fi
225226

@@ -305,9 +306,9 @@ function init-backend-default-workspace() {
305306
function select-workspace() {
306307
local WORKSPACE_EXIT
307308

308-
debug_log $TOOL_COMMAND_NAME workspace select '$VARIABLE_ARGS' "$INPUT_WORKSPACE" # don't expand VARIABLE_ARGS
309+
debug_log $TOOL_COMMAND_NAME '$VARIABLE_ARGS' workspace select "$INPUT_WORKSPACE" # don't expand VARIABLE_ARGS
309310
set +e
310-
(cd "$INPUT_PATH" && $TOOL_COMMAND_NAME workspace select "$VARIABLE_ARGS" "$INPUT_WORKSPACE") >"$STEP_TMP_DIR/workspace_select" 2>&1
311+
(cd "$INPUT_PATH" && $TOOL_COMMAND_NAME "$VARIABLE_ARGS" workspace select "$INPUT_WORKSPACE") >"$STEP_TMP_DIR/workspace_select" 2>&1
311312
WORKSPACE_EXIT=$?
312313
set -e
313314

0 commit comments

Comments
 (0)