diff --git a/internal/schema/0.12/connection_block.go b/internal/schema/0.12/connection_block.go index 3a25d470..6270524e 100644 --- a/internal/schema/0.12/connection_block.go +++ b/internal/schema/0.12/connection_block.go @@ -21,11 +21,11 @@ func connectionBlock(v *version.Version) *schema.BlockSchema { Attributes: map[string]*schema.AttributeSchema{ "type": { Expr: schema.ExprConstraints{ - schema.LiteralValue{ + schema.LegacyLiteralValue{ Val: cty.StringVal("ssh"), Description: lang.Markdown("Use SSH to connect and provision the instance"), }, - schema.LiteralValue{ + schema.LegacyLiteralValue{ Val: cty.StringVal("winrm"), Description: lang.Markdown("Use WinRM to connect and provision the instance"), }, diff --git a/internal/schema/0.15/connection_block.go b/internal/schema/0.15/connection_block.go index 55db2ecd..ef6c6a80 100644 --- a/internal/schema/0.15/connection_block.go +++ b/internal/schema/0.15/connection_block.go @@ -24,8 +24,8 @@ func ConnectionDependentBodies(v *version.Version) map[schema.SchemaKey]*schema. // See https://github.com/hashicorp/terraform/commit/5b99a56f bodies[ssh].Attributes["target_platform"] = &schema.AttributeSchema{ Expr: schema.ExprConstraints{ - schema.LiteralValue{Val: cty.StringVal("windows")}, - schema.LiteralValue{Val: cty.StringVal("unix")}, + schema.LegacyLiteralValue{Val: cty.StringVal("windows")}, + schema.LegacyLiteralValue{Val: cty.StringVal("unix")}, }, IsOptional: true, Description: lang.Markdown("The target platform to connect to. " + diff --git a/internal/schema/backends/backends.go b/internal/schema/backends/backends.go index 9b5acdff..1cb5f6d3 100644 --- a/internal/schema/backends/backends.go +++ b/internal/schema/backends/backends.go @@ -27,7 +27,7 @@ func BackendTypesAsExprConstraints(tfVersion *version.Version) schema.ExprConstr ec := make(schema.ExprConstraints, 0) for backendType, bs := range backendBodySchemas(tfVersion) { - lv := schema.LiteralValue{ + lv := schema.LegacyLiteralValue{ Val: cty.StringVal(backendType), IsDeprecated: bs.IsDeprecated, } @@ -38,8 +38,8 @@ func BackendTypesAsExprConstraints(tfVersion *version.Version) schema.ExprConstr } sort.SliceStable(ec, func(i, j int) bool { - leftVal := ec[i].(schema.LiteralValue) - rightVal := ec[j].(schema.LiteralValue) + leftVal := ec[i].(schema.LegacyLiteralValue) + rightVal := ec[j].(schema.LegacyLiteralValue) return leftVal.Val.AsString() < rightVal.Val.AsString() })