There was an error while loading. Please reload this page.
1 parent 11db05a commit ccaccadCopy full SHA for ccaccad
1 file changed
okta/services/idaas/resource_okta_authenticator.go
@@ -26,7 +26,7 @@ func resourceAuthenticator() *schema.Resource {
26
func(ctx context.Context, req schema.ValidateResourceConfigFuncRequest, resp *schema.ValidateResourceConfigFuncResponse) {
27
keyAttrExists := !req.RawConfig.GetAttr("key").IsNull()
28
legacyIgnoreNameAttrExists := !req.RawConfig.GetAttr("legacy_ignore_name").IsNull()
29
- if keyAttrExists && req.RawConfig.GetAttr("key").AsString() == "custom_app" {
+ if keyAttrExists && req.RawConfig.GetAttr("key").IsKnown() && req.RawConfig.GetAttr("key").AsString() == "custom_app" {
30
if !legacyIgnoreNameAttrExists || legacyIgnoreNameAttrExists && req.RawConfig.GetAttr("legacy_ignore_name").True() {
31
resp.Diagnostics = append(resp.Diagnostics, diag.Errorf("legacy_ignore_name must be false when creating a custom_app type authenticator")...)
32
}
0 commit comments