mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-04 17:51:11 +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,
|
"enabled": c.Enabled,
|
||||||
"provider": c.Provider,
|
"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
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user