Replace generic host error messages for feature support

This commit is contained in:
Chris Arcand 2021-08-20 22:12:29 -05:00
parent ea8ad0b15a
commit a5f063625a
2 changed files with 8 additions and 8 deletions

View File

@ -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,
),

View File

@ -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,
),