Skip to content

Commit

Permalink
handle error on d.Set
Browse files Browse the repository at this point in the history
  • Loading branch information
helenfufu committed Nov 21, 2024
1 parent 67bb7aa commit 894d67a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vault/resource_aws_auth_backend_sts_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ func awsAuthBackendSTSRoleRead(d *schema.ResourceData, meta interface{}) error {

if provider.IsAPISupported(meta, provider.VaultVersion117) {
if v, ok := resp.Data[consts.FieldExternalID]; ok {
d.Set(consts.FieldExternalID, v)
if err := d.Set(consts.FieldExternalID, v); err != nil {
return err
}
}
}

Expand Down

0 comments on commit 894d67a

Please sign in to comment.