diff options
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 | } | ||