From b46c525f80a17020801bc84b8c2d782cbfdc6bee Mon Sep 17 00:00:00 2001 From: Andrew Gertjejansen Date: Fri, 3 Dec 2021 13:02:08 -0600 Subject: [PATCH] Ensure the name is sync'd on read in okta_domain resource This ensures on import and on refresh, the "name" property is kept in sync. The name property is a ForceNew=true property and thus this is vital. --- okta/resource_okta_domain.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/okta/resource_okta_domain.go b/okta/resource_okta_domain.go index 2b7f8f6fa..1892cae70 100644 --- a/okta/resource_okta_domain.go +++ b/okta/resource_okta_domain.go @@ -99,6 +99,9 @@ func resourceDomainRead(ctx context.Context, d *schema.ResourceData, m interface if err != nil { return diag.FromErr(err) } + + d.Set("name", domain.Domain) + if vd != nil { _ = d.Set("validation_status", vd.ValidationStatus) } else {