Skip to content

Commit cd2ca9a

Browse files
committed
resource_email_forward: Fix importing, set alias_name before reading
- The post-import plan for an email forward wouldn't come back clean as all the fields weren't set in the state.
1 parent b01bb9f commit cd2ca9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

improvmx/resource_email_forward.go

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func resourceEmailForwardImport(d *schema.ResourceData, meta interface{}) ([]*sc
119119

120120
d.SetId(parts[1])
121121
d.Set("domain", parts[0])
122+
d.Set("alias_name", parts[1])
122123

123124
resourceEmailForwardRead(d, meta)
124125

0 commit comments

Comments
 (0)