mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
output warning flag
This commit is contained in:
parent
cc5e480378
commit
5fa24a0128
@ -68,9 +68,9 @@ func (n *EvalWriteOutput) Eval(ctx EvalContext) (interface{}, error) {
|
||||
|
||||
// handling the interpolation error
|
||||
if err != nil {
|
||||
if n.ContinueOnErr {
|
||||
if n.ContinueOnErr || flagWarnOutputErrors {
|
||||
log.Printf("[ERROR] Output interpolation %q failed: %s", n.Name, err)
|
||||
// if we're continueing, make sure the output is included, and
|
||||
// if we're continuing, make sure the output is included, and
|
||||
// marked as unknown
|
||||
mod.Outputs[n.Name] = &OutputState{
|
||||
Type: "string",
|
||||
|
@ -1,3 +1,7 @@
|
||||
package terraform
|
||||
|
||||
import "os"
|
||||
|
||||
// This file holds feature flags for the next release
|
||||
|
||||
var flagWarnOutputErrors = os.Getenv("TF_WARN_OUTPUT_ERRORS") != ""
|
||||
|
Loading…
Reference in New Issue
Block a user