Skip to content

Commit

Permalink
return false if auto provisioning oauth scopes is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 authored Dec 2, 2019
2 parents 28e10ad + 8f5ac60 commit ae6599d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,9 @@ func cidrOrSizeDiffSuppress(k, old, new string, d *schema.ResourceData) bool {
// removable by disabling those features.
func containerClusterAddedScopesSuppress(k, old, new string, d *schema.ResourceData) bool {
o, n := d.GetChange("cluster_autoscaling.0.auto_provisioning_defaults.0.oauth_scopes")
if o == nil || n == nil {
return false
}

addedScopes := []string{
"https://www.googleapis.com/auth/monitoring.write",
Expand Down

0 comments on commit ae6599d

Please sign in to comment.