diff options
Diffstat (limited to 'mailgun/resource_mailgun_domain.go')
-rw-r--r-- | mailgun/resource_mailgun_domain.go | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mailgun/resource_mailgun_domain.go b/mailgun/resource_mailgun_domain.go index 988b80c..45397cf 100644 --- a/mailgun/resource_mailgun_domain.go +++ b/mailgun/resource_mailgun_domain.go | |||
@@ -107,29 +107,29 @@ func resourceMailgunDomain() *schema.Resource { | |||
107 | "open_tracking_settings_active": &schema.Schema{ | 107 | "open_tracking_settings_active": &schema.Schema{ |
108 | Type: schema.TypeBool, | 108 | Type: schema.TypeBool, |
109 | Optional: true, | 109 | Optional: true, |
110 | Computed: true, | 110 | Default: false, |
111 | }, | 111 | }, |
112 | 112 | ||
113 | "click_tracking_settings_active": &schema.Schema{ | 113 | "click_tracking_settings_active": &schema.Schema{ |
114 | Type: schema.TypeBool, | 114 | Type: schema.TypeBool, |
115 | Optional: true, | 115 | Optional: true, |
116 | Computed: true, | 116 | Default: false, |
117 | }, | 117 | }, |
118 | 118 | ||
119 | "unsubscribe_tracking_settings_active": &schema.Schema{ | 119 | "unsubscribe_tracking_settings_active": &schema.Schema{ |
120 | Type: schema.TypeBool, | 120 | Type: schema.TypeBool, |
121 | Optional: true, | 121 | Optional: true, |
122 | Computed: true, | 122 | Default: false, |
123 | }, | 123 | }, |
124 | "unsubscribe_tracking_settings_html_footer": &schema.Schema{ | 124 | "unsubscribe_tracking_settings_html_footer": &schema.Schema{ |
125 | Type: schema.TypeString, | 125 | Type: schema.TypeString, |
126 | Optional: true, | 126 | Optional: true, |
127 | Computed: true, | 127 | Default: "\n<br>\n<p><a href=\"%unsubscribe_url%\">unsubscribe</a></p>\n", |
128 | }, | 128 | }, |
129 | "unsubscribe_tracking_settings_text_footer": &schema.Schema{ | 129 | "unsubscribe_tracking_settings_text_footer": &schema.Schema{ |
130 | Type: schema.TypeString, | 130 | Type: schema.TypeString, |
131 | Optional: true, | 131 | Optional: true, |
132 | Computed: true, | 132 | Default: "\n\nTo unsubscribe click: <%unsubscribe_url%>\n\n", |
133 | }, | 133 | }, |
134 | 134 | ||
135 | "require_tls": &schema.Schema{ | 135 | "require_tls": &schema.Schema{ |
@@ -425,9 +425,12 @@ func ReadDomain(d *schema.ResourceData, meta interface{}) error { | |||
425 | d.Set("unsubscribe_tracking_settings_html_footer", domainTracking.Unsubscribe.HTMLFooter) | 425 | d.Set("unsubscribe_tracking_settings_html_footer", domainTracking.Unsubscribe.HTMLFooter) |
426 | d.Set("unsubscribe_tracking_settings_text_footer", domainTracking.Unsubscribe.TextFooter) | 426 | d.Set("unsubscribe_tracking_settings_text_footer", domainTracking.Unsubscribe.TextFooter) |
427 | 427 | ||
428 | time.Sleep(20 * time.Second) | ||
429 | |||
428 | ipAddress, err := mg.ListDomainIPS(ctx) | 430 | ipAddress, err := mg.ListDomainIPS(ctx) |
431 | |||
429 | if err != nil { | 432 | if err != nil { |
430 | return fmt.Errorf("Error Getting mailgun domain ips for %s: Error: %s", d.Id(), err) | 433 | return fmt.Errorf("Error Getting mailgun domain ips1 for %s: Error: %s", d.Id(), err) |
431 | } | 434 | } |
432 | ips := make([]string, len(ipAddress)) | 435 | ips := make([]string, len(ipAddress)) |
433 | for i, r := range ipAddress { | 436 | for i, r := range ipAddress { |