Skip to content

Commit

Permalink
remove management when it is not set (GoogleCloudPlatform#7868)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
2 people authored and ericayyliu committed Jul 26, 2023
1 parent 5047036 commit 725f811
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4270,7 +4270,7 @@ func expandStandardRolloutPolicy(configured interface{}) *container.StandardRoll
func expandManagement(configured interface{}) *container.NodeManagement {
l, ok := configured.([]interface{})
if !ok || l == nil || len(l) == 0 || l[0] == nil {
return &container.NodeManagement{}
return nil
}
config := l[0].(map[string]interface{})

Expand Down

0 comments on commit 725f811

Please sign in to comment.