Archived
Fix --no-strict Terraform opt-out behavior
This commit is contained in:
1 parent
4fcf388092
commit
524a9db758
1 file changed
+1
-1
@@ -273,10 +273,10 @@ validate_terraform() {
|
|||||||
if [[ -z "$TERRAFORM_PATH" ]]; then
|
if [[ -z "$TERRAFORM_PATH" ]]; then
|
||||||
if (( STRICT_MODE == 1 )); then
|
if (( STRICT_MODE == 1 )); then
|
||||||
error "terraform not found in PATH (required in --strict mode)"
|
error "terraform not found in PATH (required in --strict mode)"
|
||||||
|
bad=1
|
||||||
else
|
else
|
||||||
warn "terraform not found in PATH (allowed only because --no-strict was set)"
|
warn "terraform not found in PATH (allowed only because --no-strict was set)"
|
||||||
fi
|
fi
|
||||||
bad=1
|
|
||||||
return "$bad"
|
return "$bad"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user