Skip to content

Commit

Permalink
Merge pull request #4078 from hashicorp/b-heredoc-lists
Browse files Browse the repository at this point in the history
Add failing test replicating #4065
  • Loading branch information
jen20 committed Nov 29, 2015
2 parents 4efc95f + 7f5f8d3 commit 6d4ddfa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,11 @@ aws_iam_policy[policy] (x1)
name
path
policy
aws_instance[test] (x1)
ami
provisioners
remote-exec
inline
`

const escapedquotesResourcesStr = `
Expand Down
15 changes: 15 additions & 0 deletions config/test-fixtures/heredoc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ resource "aws_iam_policy" "policy" {
}
EOF
}

resource "aws_instance" "test" {
ami = "foo"

provisioner "remote-exec" {
inline = [
<<EOT
sudo \
A=val \
B=val2 \
sh script.sh
EOT
]
}
}

0 comments on commit 6d4ddfa

Please sign in to comment.