Skip to content

Commit

Permalink
fix elem type for new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcraig committed Dec 2, 2024
1 parent 98e3d76 commit d499264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vault/resource_aws_secret_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ func awsSecretBackendResource() *schema.Resource {
},
consts.FieldSTSFallbackEndpoints: {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Description: "Specifies a list of custom STS fallback endpoints to use (in order).",
},
consts.FieldSTSFallbackRegions: {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Description: "Specifies a list of custom STS fallback regions to use (in order).",
},
Expand Down Expand Up @@ -343,7 +345,6 @@ func awsSecretBackendRead(ctx context.Context, d *schema.ResourceData, meta inte
}

if v, ok := resp.Data[consts.FieldSTSFallbackRegions]; ok {
g
if err := d.Set(consts.FieldSTSFallbackRegions, v); err != nil {
return diag.Errorf("error reading %s for AWS Secret Backend %q: %q", consts.FieldSTSFallbackRegions, path, err)
}
Expand Down

0 comments on commit d499264

Please sign in to comment.