Skip to content

Commit

Permalink
set original workspace id
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Jan 31, 2024
1 parent bddf47f commit e66364d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ func (r Resource) ToResource() *schema.Resource {
err = nicerError(ctx, err, "read")
return diag.FromErr(err)
}
if workspaceId, ok := d.GetOk("workspace_id"); ok && !r.IsAccountLevelOnly {
d.Set("original_workspace_id", workspaceId)
}
return nil
},
ReadContext: generateReadFunc(true),
Expand Down

0 comments on commit e66364d

Please sign in to comment.