mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-06 02:02:43 +00:00
Fix for networkPolicyEnabled test - must explicitly add default network policy. (#1363)
This commit is contained in:
parent
dae4c6ced5
commit
de9363502b
|
@ -1456,6 +1456,12 @@ func flattenNetworkPolicy(c *containerBeta.NetworkPolicy) []map[string]interface
|
|||
"enabled": c.Enabled,
|
||||
"provider": c.Provider,
|
||||
})
|
||||
} else {
|
||||
// Explicitly set the network policy to the default.
|
||||
result = append(result, map[string]interface{}{
|
||||
"enabled": false,
|
||||
"provider": "PROVIDER_UNSPECIFIED",
|
||||
})
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user