Skip to content

Commit

Permalink
Merge pull request #1337 from okta/issue_1169_panic_resource_okta_inl…
Browse files Browse the repository at this point in the history
…ine_hooks

Issue 1169 panic resource okta inline hooks
  • Loading branch information
monde authored Oct 24, 2022
2 parents e7fe4b6 + bfc497d commit f1da84e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,15 @@ func buildInlineChannel(d *schema.ResourceData) *okta.InlineHookChannel {
if !ok {
a["type"] = "HEADER"
}
auth = &okta.InlineHookChannelConfigAuthScheme{
Key: a["key"].(string),
Type: a["type"].(string),
Value: a["value"].(string),
auth = &okta.InlineHookChannelConfigAuthScheme{}
if key, ok := a["key"]; ok && key != nil {
auth.Key = key.(string)
}
if _type, ok := a["type"]; ok && _type != nil {
auth.Type = _type.(string)
}
if value, ok := a["value"]; ok && value != nil {
auth.Value = value.(string)
}
}
rawChannel := d.Get("channel").(map[string]interface{})
Expand Down
File renamed without changes.

0 comments on commit f1da84e

Please sign in to comment.