Skip to content

Commit

Permalink
filter nil (#6916) (#13188)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
modular-magician and Edward Sun committed Dec 6, 2022
1 parent 5fc4734 commit d075c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/6916.txt
@@ -0,0 +1,3 @@
```release-note:bug
cloud composer: fixed a crash when updating `ip_allocation_policy` of `google_composer_environment`
```
2 changes: 1 addition & 1 deletion google/resource_composer_environment.go
Expand Up @@ -1740,7 +1740,7 @@ func expandComposerEnvironmentConfigNodeConfig(v interface{}, d *schema.Resource

func expandComposerEnvironmentIPAllocationPolicy(v interface{}, d *schema.ResourceData, config *Config) (*composer.IPAllocationPolicy, error) {
l := v.([]interface{})
if len(l) == 0 {
if len(l) == 0 || l[0] == nil {
return nil, nil
}
raw := l[0]
Expand Down

0 comments on commit d075c82

Please sign in to comment.