Skip to content

Commit dd52290

Browse files
committed
rename unsafeFileFunctions -> stubFileFunctions
1 parent 7a2b804 commit dd52290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provisioner/terraform/tfparse/funcs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ var (
118118

119119
// the below functions are not safe for usage in the context of tfparse, as their return
120120
// values may change depending on the underlying filesystem.
121-
unsafeFileFunctions = map[string]function.Function{
121+
stubFileFunctions = map[string]function.Function{
122122
"abspath": makeStubFunction("abspath", cty.String, function.Parameter{Name: "path", Type: cty.String}),
123123
"file": makeStubFunction("file", cty.String, function.Parameter{Name: "path", Type: cty.String}),
124124
"fileexists": makeStubFunction("fileexists", cty.String, function.Parameter{Name: "path", Type: cty.String}),
@@ -133,7 +133,7 @@ var (
133133
"pathexpand": makeStubFunction("pathexpand", cty.String, function.Parameter{Name: "path", Type: cty.String}),
134134
}
135135

136-
allFunctions = mergeMaps(safeFunctions, unsafeFileFunctions)
136+
allFunctions = mergeMaps(safeFunctions, stubFileFunctions)
137137
)
138138

139139
// mergeMaps returns a new map which is the result of merging each key and value

0 commit comments

Comments
 (0)