opentofu/internal/command/helper.go

32 lines
877 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
2022-08-25 14:57:40 -05:00
package command
import (
"github.com/opentofu/opentofu/internal/backend"
"github.com/opentofu/opentofu/internal/cloud"
2022-08-25 14:57:40 -05:00
)
const failedToLoadSchemasMessage = `
2022-08-30 17:01:44 -05:00
Warning: Failed to update data for external integrations
OpenTF was unable to generate a description of the updated
2022-08-30 17:01:44 -05:00
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 OpenTF cannot read the schema for
2022-08-30 17:01:44 -05:00
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:
opentf apply
`
2022-08-26 15:32:18 -05:00
func isCloudMode(b backend.Enhanced) bool {
_, ok := b.(*cloud.Cloud)
return ok
}