Skip to content

Commit

Permalink
resource_email_forward: Fix importing, set alias_name before reading
Browse files Browse the repository at this point in the history
- The post-import plan for an email forward wouldn't come back clean as
  all the fields weren't set in the state.
  • Loading branch information
issyl0 committed Aug 13, 2021
1 parent b01bb9f commit cd2ca9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions improvmx/resource_email_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func resourceEmailForwardImport(d *schema.ResourceData, meta interface{}) ([]*sc

d.SetId(parts[1])
d.Set("domain", parts[0])
d.Set("alias_name", parts[1])

resourceEmailForwardRead(d, meta)

Expand Down

0 comments on commit cd2ca9a

Please sign in to comment.