providers/mailgun: smtp_password is required

This commit is contained in:
Jack Pearkes 2014-08-24 16:00:17 -07:00
parent 872f852a59
commit b71ff28871
3 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@ func resourceMailgunDomain() *schema.Resource {
Type: schema.TypeString,
Computed: true,
ForceNew: true,
Optional: true,
Required: true,
},
"smtp_login": &schema.Schema{

View File

@ -66,7 +66,7 @@ func testAccCheckMailgunDomainAttributes(Domain *mailgun.Domain) resource.TestCh
}
if Domain.Wildcard != true {
return fmt.Errorf("Bad wildcard: %s", Domain.SpamAction)
return fmt.Errorf("Bad wildcard: %s", Domain.Wildcard)
}
if Domain.SmtpPassword != "foobar" {

View File

@ -13,8 +13,9 @@ create and manage applications on Mailgun.
```
# Create a new mailgun domain
resource "mailgun_app" "default" {
resource "mailgun_domain" "default" {
name = "test.example.com"
smtp_password = "foobar"
}
# Create SMTP Credentials
@ -30,7 +31,7 @@ resource "mailgun_domain" "default" {
The following arguments are supported:
* `name` - (Required) The domain to add to Mailgun
* `smtp_password` - (Optional) Password for SMTP authentication
* `smtp_password` - (Required) Password for SMTP authentication
* `spam_action` - (Optional) `disabled` or `tag` Disable, no spam
filtering will occur for inbound messages. Tag, messages
will be tagged wtih a spam header.