github.com/opentofu/opentofu@v1.7.1/internal/command/helper.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package command 7 8 import ( 9 "github.com/opentofu/opentofu/internal/backend" 10 "github.com/opentofu/opentofu/internal/cloud" 11 ) 12 13 const failedToLoadSchemasMessage = ` 14 Warning: Failed to update data for external integrations 15 16 OpenTofu was unable to generate a description of the updated 17 state for use with external integrations in the cloud backend. 18 Any integrations configured for this workspace which depend on 19 information from the state may not work correctly when using the 20 result of this action. 21 22 This problem occurs when OpenTofu cannot read the schema for 23 one or more of the providers used in the state. The next successful 24 apply will correct the problem by re-generating the JSON description 25 of the state: 26 tofu apply 27 ` 28 29 func isCloudMode(b backend.Enhanced) bool { 30 _, ok := b.(*cloud.Cloud) 31 32 return ok 33 }