From a5f063625a189bd8e3e1a40e57bc63ff68349c49 Mon Sep 17 00:00:00 2001 From: Chris Arcand Date: Fri, 20 Aug 2021 22:12:29 -0500 Subject: [PATCH] Replace generic host error messages for feature support --- internal/cloud/backend_apply.go | 8 ++++---- internal/cloud/backend_plan.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/cloud/backend_apply.go b/internal/cloud/backend_apply.go index e50f1ee60..b52719593 100644 --- a/internal/cloud/backend_apply.go +++ b/internal/cloud/backend_apply.go @@ -100,7 +100,7 @@ func (b *Cloud) opApply(stopCtx, cancelCtx context.Context, op *backend.Operatio tfdiags.Error, "Planning without refresh is not supported", fmt.Sprintf( - `The host %s does not support the -refresh=false option for `+ + `The Terraform Enterprise installation at %s does not support the -refresh=false option for `+ `remote plans.`, b.hostname, ), @@ -116,7 +116,7 @@ func (b *Cloud) opApply(stopCtx, cancelCtx context.Context, op *backend.Operatio tfdiags.Error, "Refresh-only mode is not supported", fmt.Sprintf( - `The host %s does not support -refresh-only mode for `+ + `The Terraform Enterprise installation at %s does not support -refresh-only mode for `+ `remote plans.`, b.hostname, ), @@ -132,7 +132,7 @@ func (b *Cloud) opApply(stopCtx, cancelCtx context.Context, op *backend.Operatio tfdiags.Error, "Planning resource replacements is not supported", fmt.Sprintf( - `The host %s does not support the -replace option for `+ + `The Terraform Enterprise installation at %s does not support the -replace option for `+ `remote plans.`, b.hostname, ), @@ -148,7 +148,7 @@ func (b *Cloud) opApply(stopCtx, cancelCtx context.Context, op *backend.Operatio tfdiags.Error, "Resource targeting is not supported", fmt.Sprintf( - `The host %s does not support the -target option for `+ + `The Terraform Enterprise installation at %s does not support the -target option for `+ `remote plans.`, b.hostname, ), diff --git a/internal/cloud/backend_plan.go b/internal/cloud/backend_plan.go index 025b36776..3e3916b36 100644 --- a/internal/cloud/backend_plan.go +++ b/internal/cloud/backend_plan.go @@ -106,7 +106,7 @@ func (b *Cloud) opPlan(stopCtx, cancelCtx context.Context, op *backend.Operation tfdiags.Error, "Resource targeting is not supported", fmt.Sprintf( - `The host %s does not support the -target option for `+ + `The Terraform Enterprise installation at %s does not support the -target option for `+ `remote plans.`, b.hostname, ), @@ -122,7 +122,7 @@ func (b *Cloud) opPlan(stopCtx, cancelCtx context.Context, op *backend.Operation tfdiags.Error, "Planning without refresh is not supported", fmt.Sprintf( - `The host %s does not support the -refresh=false option for `+ + `The Terraform Enterprise installation at %s does not support the -refresh=false option for `+ `remote plans.`, b.hostname, ), @@ -138,7 +138,7 @@ func (b *Cloud) opPlan(stopCtx, cancelCtx context.Context, op *backend.Operation tfdiags.Error, "Planning resource replacements is not supported", fmt.Sprintf( - `The host %s does not support the -replace option for `+ + `The Terraform Enterprise installation at %s does not support the -replace option for `+ `remote plans.`, b.hostname, ), @@ -154,7 +154,7 @@ func (b *Cloud) opPlan(stopCtx, cancelCtx context.Context, op *backend.Operation tfdiags.Error, "Refresh-only mode is not supported", fmt.Sprintf( - `The host %s does not support -refresh-only mode for `+ + `The Terraform Enterprise installation at %s does not support -refresh-only mode for `+ `remote plans.`, b.hostname, ),