Skip to content

Commit

Permalink
Fix idp conn import failure for empty token_generator_mappings (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryrecker-pingidentity authored Jan 2, 2025
1 parent c4e61a1 commit a37eb0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# v1.2.1 (Unreleased)
### Bug Fixes
* Fix terraform import failure for certain `pingfederate_sp_idp_connection` configurations ([#442](https://github.com/pingidentity/terraform-provider-pingfederate/pull/442))

### Notes
* bump `golang.org/x/net` 0.31.0 => 0.33.0 ([#441](https://github.com/pingidentity/terraform-provider-pingfederate/pull/441))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4632,6 +4632,8 @@ func readSpIdpConnectionResponse(ctx context.Context, r *client.IdpConnection, p
if tokenGeneratorMappings != nil {
tokenGeneratorMappingsSet, objDiags = types.SetValueFrom(ctx, types.ObjectType{AttrTypes: tokenGeneratorAttrTypes}, tokenGeneratorMappings)
diags.Append(objDiags...)
} else {
tokenGeneratorMappingsSet = types.SetNull(types.ObjectType{AttrTypes: tokenGeneratorAttrTypes})
}

wsTrustAttrValues := map[string]attr.Value{
Expand Down

0 comments on commit a37eb0e

Please sign in to comment.