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 {
|
type Config struct {
|
||||||
APIKey string `mapstructure:"api_key"`
|
APIKey string `mapstructure:"api_key"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Client() returns a new client for accessing mailgun.
|
// Client() returns a new client for accessing mailgun.
|
||||||
|
|
|
@ -13,12 +13,7 @@ func Provider() *schema.Provider {
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"api_key": &schema.Schema{
|
"api_key": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: false,
|
Required: true,
|
||||||
},
|
|
||||||
|
|
||||||
"public_api_key": &schema.Schema{
|
|
||||||
Type: schema.TypeString,
|
|
||||||
Optional: false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ func resourceMailgunDomain() *schema.Resource {
|
||||||
|
|
||||||
"smtp_password": &schema.Schema{
|
"smtp_password": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Computed: true,
|
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue