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

Merge branch 'remove-ff-auto-approve' into 'main'

Remove `TF_FF_AUTO_APPROVE_APPLY` feature flag

See merge request components/opentofu!186
parents 9cc000fb bac5a61b
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.
......@@ -213,17 +209,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