diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go b/vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go new file mode 100644 index 0000000..d2d6287 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go | |||
@@ -0,0 +1,13 @@ | |||
1 | package earlyconfig | ||
2 | |||
3 | import ( | ||
4 | "github.com/hashicorp/terraform-config-inspect/tfconfig" | ||
5 | "github.com/hashicorp/terraform/tfdiags" | ||
6 | ) | ||
7 | |||
8 | // LoadModule loads some top-level metadata for the module in the given | ||
9 | // directory. | ||
10 | func LoadModule(dir string) (*tfconfig.Module, tfdiags.Diagnostics) { | ||
11 | mod, diags := tfconfig.LoadModule(dir) | ||
12 | return mod, wrapDiagnostics(diags) | ||
13 | } | ||