feat: provider v0.1.9 — namespace hardcoded in client, removed from provider schema and all examples
This commit is contained in:
@@ -25,7 +25,6 @@ import (
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/int64validator"
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
|
||||
"github.com/hashicorp/terraform-plugin-framework/attr"
|
||||
"github.com/hashicorp/terraform-plugin-framework/diag"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
|
||||
@@ -323,12 +322,7 @@ func mapToStringMap(ctx context.Context, m types.Map) (map[string]string, diag.D
|
||||
result := make(map[string]string, len(elements))
|
||||
var diags diag.Diagnostics
|
||||
for k, v := range elements {
|
||||
sv, ok := v.(attr.Value)
|
||||
if !ok {
|
||||
diags.AddError("env_vars conversion", fmt.Sprintf("unexpected type for key %q", k))
|
||||
continue
|
||||
}
|
||||
strVal, ok := sv.(types.String)
|
||||
strVal, ok := v.(types.String)
|
||||
if !ok {
|
||||
diags.AddError("env_vars conversion", fmt.Sprintf("value for key %q is not a string", k))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user