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/tfdiags/sourceless.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/tfdiags/sourceless.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/tfdiags/sourceless.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/tfdiags/sourceless.go b/vendor/github.com/hashicorp/terraform/tfdiags/sourceless.go new file mode 100644 index 0000000..eaa2737 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/tfdiags/sourceless.go | |||
@@ -0,0 +1,13 @@ | |||
1 | package tfdiags | ||
2 | |||
3 | // Sourceless creates and returns a diagnostic with no source location | ||
4 | // information. This is generally used for operational-type errors that are | ||
5 | // caused by or relate to the environment where Terraform is running rather | ||
6 | // than to the provided configuration. | ||
7 | func Sourceless(severity Severity, summary, detail string) Diagnostic { | ||
8 | return diagnosticBase{ | ||
9 | severity: severity, | ||
10 | summary: summary, | ||
11 | detail: detail, | ||
12 | } | ||
13 | } | ||