diff options
author | Radek Simko <radek.simko@gmail.com> | 2017-08-10 14:38:14 +0200 |
---|---|---|
committer | Radek Simko <radek.simko@gmail.com> | 2017-08-10 14:38:14 +0200 |
commit | c680a8e1622ed0f18751d9d167c836ee24f5e897 (patch) | |
tree | 864f925049d422033dd25a73bafce32b361c8827 /vendor/github.com/hashicorp/terraform/config/loader.go | |
parent | 38f8880ac81bfabc6d7f82e4dc89661f20fc559e (diff) | |
download | terraform-provider-statuscake-c680a8e1622ed0f18751d9d167c836ee24f5e897.tar.gz terraform-provider-statuscake-c680a8e1622ed0f18751d9d167c836ee24f5e897.tar.zst terraform-provider-statuscake-c680a8e1622ed0f18751d9d167c836ee24f5e897.zip |
vendor: github.com/hashicorp/terraform/...@v0.10.0
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/config/loader.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/config/loader.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/hashicorp/terraform/config/loader.go b/vendor/github.com/hashicorp/terraform/config/loader.go index 0bfa89c..5dd7d46 100644 --- a/vendor/github.com/hashicorp/terraform/config/loader.go +++ b/vendor/github.com/hashicorp/terraform/config/loader.go | |||
@@ -194,7 +194,7 @@ func dirFiles(dir string) ([]string, []string, error) { | |||
194 | // Only care about files that are valid to load | 194 | // Only care about files that are valid to load |
195 | name := fi.Name() | 195 | name := fi.Name() |
196 | extValue := ext(name) | 196 | extValue := ext(name) |
197 | if extValue == "" || isIgnoredFile(name) { | 197 | if extValue == "" || IsIgnoredFile(name) { |
198 | continue | 198 | continue |
199 | } | 199 | } |
200 | 200 | ||
@@ -215,9 +215,9 @@ func dirFiles(dir string) ([]string, []string, error) { | |||
215 | return files, overrides, nil | 215 | return files, overrides, nil |
216 | } | 216 | } |
217 | 217 | ||
218 | // isIgnoredFile returns true or false depending on whether the | 218 | // IsIgnoredFile returns true or false depending on whether the |
219 | // provided file name is a file that should be ignored. | 219 | // provided file name is a file that should be ignored. |
220 | func isIgnoredFile(name string) bool { | 220 | func IsIgnoredFile(name string) bool { |
221 | return strings.HasPrefix(name, ".") || // Unix-like hidden files | 221 | return strings.HasPrefix(name, ".") || // Unix-like hidden files |
222 | strings.HasSuffix(name, "~") || // vim | 222 | strings.HasSuffix(name, "~") || // vim |
223 | strings.HasPrefix(name, "#") && strings.HasSuffix(name, "#") // emacs | 223 | strings.HasPrefix(name, "#") && strings.HasSuffix(name, "#") // emacs |