providers/mailgun: smtp_password is required, no need for pub api key

This commit is contained in:
Jack Pearkes 2014-08-25 10:08:40 -07:00
parent 9dfc7ad49d
commit b79834e859
3 changed files with 2 additions and 8 deletions

View File

@ -8,7 +8,7 @@ import (
)
type Config struct {
APIKey string `mapstructure:"api_key"`
APIKey string `mapstructure:"api_key"`
}
// Client() returns a new client for accessing mailgun.

View File

@ -13,12 +13,7 @@ func Provider() *schema.Provider {
Schema: map[string]*schema.Schema{
"api_key": &schema.Schema{
Type: schema.TypeString,
Optional: false,
},
"public_api_key": &schema.Schema{
Type: schema.TypeString,
Optional: false,
Required: true,
},
},

View File

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