mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
update StateFunc to return empty string if maintenance_window not found
This commit is contained in:
parent
22e73d7b68
commit
bd2adfce3b
@ -140,8 +140,11 @@ func resourceAwsDbInstance() *schema.Resource {
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
StateFunc: func(v interface{}) string {
|
||||
value := v.(string)
|
||||
return strings.ToLower(value)
|
||||
if v != nil {
|
||||
value := v.(string)
|
||||
return strings.ToLower(value)
|
||||
}
|
||||
return ""
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user