update StateFunc to return empty string if maintenance_window not found

This commit is contained in:
Clint Shryock 2015-08-24 11:25:43 -05:00
parent 22e73d7b68
commit bd2adfce3b

View File

@ -140,8 +140,11 @@ func resourceAwsDbInstance() *schema.Resource {
Optional: true,
Computed: true,
StateFunc: func(v interface{}) string {
if v != nil {
value := v.(string)
return strings.ToLower(value)
}
return ""
},
},