Skip to content

Commit 403cc50

Browse files
authored
Merge pull request #36706 from latentd/fix/rename-legacy-terms
update legacy term: Terraform Cloud agent => HCP Terraform Agent
2 parents 796f27a + 5edcdef commit 403cc50

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: ENHANCEMENTS
2+
body: Update legacy term used in error messages. (Terraform Cloud agent => HCP Terraform Agent)
3+
time: 2025-03-18T00:11:21.679162+09:00
4+
custom:
5+
Issue: "36706"

internal/cloud/backend_plan.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ func (b *Cloud) AssertImportCompatible(config *configs.Config) error {
420420
// Second, check the agent version is high enough.
421421
agentEnv, isSet := os.LookupEnv("TFC_AGENT_VERSION")
422422
if !isSet {
423-
return fmt.Errorf("Error reading Terraform Cloud agent version. To proceed, please remove any import blocks from your config. Please report the following error to the Terraform team: TFC_AGENT_VERSION not present.")
423+
return fmt.Errorf("Error reading HCP Terraform Agent version. To proceed, please remove any import blocks from your config. Please report the following error to the Terraform team: TFC_AGENT_VERSION not present.")
424424
}
425425
currentAgentVersion, err := version.NewVersion(agentEnv)
426426
if err != nil {
427-
return fmt.Errorf("Error parsing Terraform Cloud agent version. To proceed, please remove any import blocks from your config. Please report the following error to the Terraform team: %s", err)
427+
return fmt.Errorf("Error parsing HCP Terraform Agent version. To proceed, please remove any import blocks from your config. Please report the following error to the Terraform team: %s", err)
428428
}
429429
desiredAgentVersion, _ := version.NewVersion("1.10")
430430
if currentAgentVersion.LessThan(desiredAgentVersion) {

0 commit comments

Comments
 (0)