mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-16 16:20:02 +00:00
dbf9188792
```bash GO111MODULE=on go get github.com/hashicorp/terraform@pluginsdk-v0.12-early7 GO111MODULE=on go mod vendor GO111MODULE=on go mod tidy ```
14 lines
443 B
Go
14 lines
443 B
Go
package tfdiags
|
|
|
|
// Sourceless creates and returns a diagnostic with no source location
|
|
// information. This is generally used for operational-type errors that are
|
|
// caused by or relate to the environment where Terraform is running rather
|
|
// than to the provided configuration.
|
|
func Sourceless(severity Severity, summary, detail string) Diagnostic {
|
|
return diagnosticBase{
|
|
severity: severity,
|
|
summary: summary,
|
|
detail: detail,
|
|
}
|
|
}
|