terraform: last apply test

This commit is contained in:
Mitchell Hashimoto 2015-02-13 16:43:59 -08:00
parent 1c713878b0
commit 960ba73f1d
2 changed files with 1 additions and 3 deletions

View File

@ -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")

View File

@ -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