add path.module

This commit is contained in:
icereval 2016-12-04 18:37:37 -05:00
parent 38676a07eb
commit 2bea2987dd
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (t *TerraformTarget) AddFile(resourceType string, resourceName string, key
p := path.Join("data", id)
t.files[p] = d
l := LiteralExpression(fmt.Sprintf("${file(%q)}", p))
l := LiteralExpression(fmt.Sprintf("${file(%q)}", path.Join("${path.module}", p)))
return l, nil
}