providers/mailgun: smtp_password is required, no need for pub api key
This commit is contained in:
parent
9dfc7ad49d
commit
b79834e859
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ func resourceMailgunDomain() *schema.Resource {
|
|||
|
||||
"smtp_password": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
ForceNew: true,
|
||||
Required: true,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue