github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/helper.go (about)

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