Skip to content

Commit

Permalink
fix: assign computed values on create in application, fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
MCBrandenburg committed Sep 29, 2020
1 parent ab698e6 commit 1112b18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fusionauth/resource_fusionauth_application_crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ func createApplication(data *schema.ResourceData, i interface{}) error {
if faErrs != nil {
return fmt.Errorf("CreateApplication errors: %v", faErrs)
}
if ar.Application.TenantId == "" {
_ = data.Set("tenant_id", resp.Application.TenantId)
}

data.SetId(resp.Application.Id)
if err := buildResourceDataFromApplication(resp.Application, data); err != nil {
return err
}

return nil
}
Expand Down

0 comments on commit 1112b18

Please sign in to comment.