Skip to content
Snippets Groups Projects
Unverified Commit bac5a61b authored by Timo Furrer's avatar Timo Furrer
Browse files

Remove `TF_FF_AUTO_APPROVE_APPLY` feature flag

This feature flag is now always enabled.

Changelog: removed
parent 8d8c0d7d
No related branches found
No related tags found
No related merge requests found
......@@ -15,10 +15,6 @@ if [ -z "$TF_FF_AUTO_URLENCODE_STATE_NAME" ]; then
TF_FF_AUTO_URLENCODE_STATE_NAME=true
fi
if [ -z "$TF_FF_AUTO_APPROVE_APPLY" ]; then
TF_FF_AUTO_APPROVE_APPLY=true
fi
# Helpers
# Evaluate if this script is being sourced or executed directly.
......@@ -211,17 +207,12 @@ if [ $sourced -eq 0 ]; then
case "${1}" in
"apply")
auto_approve_args=""
if [ "${TF_FF_AUTO_APPROVE_APPLY}" = true ]; then
auto_approve_args="-auto-approve"
fi
$TF_IMPLICIT_INIT && terraform_init
if [ "$TF_APPLY_NO_PLAN" = false ]; then
tofu "${TF_CHDIR_OPT}" "${@}" -input=false "${auto_approve_args}" "${TF_PLAN_CACHE}"
tofu "${TF_CHDIR_OPT}" "${@}" -input=false -auto-approve "${TF_PLAN_CACHE}"
else
# shellcheck disable=SC2086
tofu "${TF_CHDIR_OPT}" "${@}" -input=false "${auto_approve_args}" ${var_file_args}
tofu "${TF_CHDIR_OPT}" "${@}" -input=false -auto-approve ${var_file_args}
fi
;;
"destroy")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment