mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
terraform: last apply test
This commit is contained in:
parent
1c713878b0
commit
960ba73f1d
@ -4240,7 +4240,6 @@ func TestContext2Apply_output(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
func TestContext2Apply_outputInvalid(t *testing.T) {
|
func TestContext2Apply_outputInvalid(t *testing.T) {
|
||||||
m := testModule(t, "apply-output-invalid")
|
m := testModule(t, "apply-output-invalid")
|
||||||
p := testProvider("aws")
|
p := testProvider("aws")
|
||||||
@ -4261,7 +4260,6 @@ func TestContext2Apply_outputInvalid(t *testing.T) {
|
|||||||
t.Fatalf("err: %s", err)
|
t.Fatalf("err: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
func TestContext2Apply_outputList(t *testing.T) {
|
func TestContext2Apply_outputList(t *testing.T) {
|
||||||
m := testModule(t, "apply-output-list")
|
m := testModule(t, "apply-output-list")
|
||||||
|
@ -58,7 +58,7 @@ func (n *EvalWriteOutput) Eval(
|
|||||||
valueRaw = list[0]
|
valueRaw = list[0]
|
||||||
}
|
}
|
||||||
if _, ok := valueRaw.(string); !ok {
|
if _, ok := valueRaw.(string); !ok {
|
||||||
valueRaw = ""
|
return nil, fmt.Errorf("output %s is not a string", n.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the output
|
// Write the output
|
||||||
|
Loading…
Reference in New Issue
Block a user