mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Fix empty TypeList expands in generated resources (#2233)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
d1ed156954
commit
6670f0cccc
@ -1039,7 +1039,7 @@ func expandComputeDiskSourceImageEncryptionKeySha256(v interface{}, d *schema.Re
|
||||
|
||||
func expandComputeDiskDiskEncryptionKey(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
|
||||
l := v.([]interface{})
|
||||
if len(l) == 0 {
|
||||
if len(l) == 0 || l[0] == nil {
|
||||
return nil, nil
|
||||
}
|
||||
raw := l[0]
|
||||
|
@ -1299,7 +1299,7 @@ func expandMonitoringAlertPolicyLabels(v interface{}, d *schema.ResourceData, co
|
||||
|
||||
func expandMonitoringAlertPolicyDocumentation(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {
|
||||
l := v.([]interface{})
|
||||
if len(l) == 0 {
|
||||
if len(l) == 0 || l[0] == nil {
|
||||
return nil, nil
|
||||
}
|
||||
raw := l[0]
|
||||
|
Loading…
Reference in New Issue
Block a user