Merge pull request #4020 from stack72/f-aws-elasticache-cluster-maintenance-window

provider/aws:Elasticache maintenance_window forces lowercase
This commit is contained in:
James Nugent 2015-11-23 15:02:21 +02:00
commit 1fa44b4796

View File

@ -71,6 +71,11 @@ func resourceAwsElasticacheCluster() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Computed: true, Computed: true,
StateFunc: func(val interface{}) string {
// Elasticache always changes the maintenance
// to lowercase
return strings.ToLower(val.(string))
},
}, },
"subnet_group_name": &schema.Schema{ "subnet_group_name": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,