mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
ebcf7455eb
* Rename module name from "github.com/hashicorp/terraform" to "github.com/placeholderplaceholderplaceholder/opentf". Signed-off-by: Jakub Martin <kubam@spacelift.io> * Gofmt. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Regenerate protobuf. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comments. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo issue and pull request link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo comment changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix comment. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Undo some link changes. Signed-off-by: Jakub Martin <kubam@spacelift.io> * make generate && make protobuf Signed-off-by: Jakub Martin <kubam@spacelift.io> --------- Signed-off-by: Jakub Martin <kubam@spacelift.io>
32 lines
932 B
Go
32 lines
932 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package command
|
|
|
|
import (
|
|
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
|
"github.com/placeholderplaceholderplaceholder/opentf/internal/cloud"
|
|
)
|
|
|
|
const failedToLoadSchemasMessage = `
|
|
Warning: Failed to update data for external integrations
|
|
|
|
Terraform was unable to generate a description of the updated
|
|
state for use with external integrations in Terraform Cloud.
|
|
Any integrations configured for this workspace which depend on
|
|
information from the state may not work correctly when using the
|
|
result of this action.
|
|
|
|
This problem occurs when Terraform cannot read the schema for
|
|
one or more of the providers used in the state. The next successful
|
|
apply will correct the problem by re-generating the JSON description
|
|
of the state:
|
|
terraform apply
|
|
`
|
|
|
|
func isCloudMode(b backend.Enhanced) bool {
|
|
_, ok := b.(*cloud.Cloud)
|
|
|
|
return ok
|
|
}
|