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, Optional: true,
Computed: true, Computed: true,
StateFunc: func(v interface{}) string { StateFunc: func(v interface{}) string {
value := v.(string) if v != nil {
return strings.ToLower(value) value := v.(string)
return strings.ToLower(value)
}
return ""
}, },
}, },