Skip to content

Commit 9c1f178

Browse files
authored
Merge pull request #1 from terraform-docs/packer
Add support for pkr.hcl and pkr.json formats
2 parents 9826d4b + 820814f commit 9c1f178

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tfconfig/load.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ func fileExt(path string) string {
127127
return ".tf"
128128
} else if strings.HasSuffix(path, ".tf.json") {
129129
return ".tf.json"
130+
} else if strings.HasSuffix(path, ".pkr.hcl") {
131+
return ".pkr.hcl"
132+
} else if strings.HasSuffix(path, ".pkr.json") {
133+
return ".pkr.json"
130134
} else {
131135
return ""
132136
}

0 commit comments

Comments
 (0)