You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
okta_brand.bl-privacy: Creating...
╷
│ Error: failed to get brand "": json: cannot unmarshal array into Go value of type okta.Brand
│
│ with okta_brand.bl-privacy,
│ on main.tf line 126, in resource "okta_brand" "bl-privacy":
│ 126: resource "okta_brand" "bl-privacy" {
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
Okta brand fails to update. brand_id is a valid value
GET 'https://bl-poc-hub1.oktapreview.com/api/v1/brands'
[{"id":"bnd3p0az1vLQRownC1d7","removePoweredByOkta":false,"customPrivacyPolicyUrl":null,"_links":{"themes":{"href":"https:///api/v1/brands/bnd3p0az1vLQRownC1d7/themes","hints":{"allow":["GET"]}},"self":{"href":"https:///api/v1/brands/bnd3p0az1vLQRownC1d7","hints":{"allow":["GET","PUT"]}}}}]
Code
data "okta_brands" "current-brands" {
}
data "okta_brand" "current-brand" {
brand_id = tolist(data.okta_brands.current-brands.brands)[0].id
}
resource "okta_brand" "bl-privacy" {
agree_to_custom_privacy_policy = true
custom_privacy_policy_url = "https://www.example.com/legal/privacy-policy/"
remove_powered_by_okta = true
}
Terraform plan output
Terraform will perform the following actions:
okta_brand.bl-privacy will be created
}
Terraform apply output
okta_brand.bl-privacy: Creating...
╷
│ Error: failed to get brand "": json: cannot unmarshal array into Go value of type okta.Brand
│
│ with okta_brand.bl-privacy,
│ on main.tf line 126, in resource "okta_brand" "bl-privacy":
│ 126: resource "okta_brand" "bl-privacy" {
Community Note
Terraform Version
Terraform v1.2.0
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/pmatpadi/5052f154c210e0e0c47e6a553ad50874
Panic Output
Expected Behavior
Brand should be updated
Actual Behavior
Brand fails to update
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered: