Skip to content

Commit

Permalink
Merge pull request #936 from virgofx/okta/fix-authenticator-whitespac…
Browse files Browse the repository at this point in the history
…e-diff

Ensure okta_authenticator settings are ordered to prevent whitespace …
  • Loading branch information
monde committed Feb 1, 2022
2 parents e5c61b2 + f1e8a82 commit becb4cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions okta/resource_okta_authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ func resourceAuthenticatorRead(ctx context.Context, d *schema.ResourceData, m in
_ = d.Set("type", authenticator.Type)
if authenticator.Settings != nil {
b, _ := json.Marshal(authenticator.Settings)

dataMap := map[string]interface{}{}
_ = json.Unmarshal([]byte(string(b)), &dataMap)
b, _ = json.Marshal(dataMap)

_ = d.Set("settings", string(b))
}
if authenticator.Provider != nil {
Expand Down

0 comments on commit becb4cb

Please sign in to comment.