Skip to content

Commit c73d84d

Browse files
committed
feat: add support for opentofu files
1 parent 93a3408 commit c73d84d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tfconfig/load.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ func dirFiles(fs FS, dir string) (primary []string, diags hcl.Diagnostics) {
128128
func fileExt(path string) string {
129129
if strings.HasSuffix(path, ".tf") {
130130
return ".tf"
131+
} else if strings.HasSuffix(path, ".tofu") {
132+
return ".tofu"
131133
} else if strings.HasSuffix(path, ".tf.json") {
132134
return ".tf.json"
133135
} else if strings.HasSuffix(path, ".pkr.hcl") {

0 commit comments

Comments
 (0)