Skip to content

Commit

Permalink
fix enforce_on_key_configs (#8165) (#15248)
Browse files Browse the repository at this point in the history
* fix enforce_on_key_configs

* add updatemask

---------

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 authored Jul 21, 2023
1 parent d93944f commit c742728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/8165.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
compute: fixed wrongly trigger recreation on changes of `enforce_on_key_configs` on `google_compute_security_policy`
```
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ func resourceComputeSecurityPolicyUpdate(d *schema.ResourceData, meta interface{
nPriorities[priority] = true
if !oPriorities[priority] {
client := config.NewComputeClient(userAgent)

// If the rule is in new and its priority does not exist in old, then add it.
op, err := client.SecurityPolicies.AddRule(project, sp, expandSecurityPolicyRule(rule)).Do()

Expand Down

0 comments on commit c742728

Please sign in to comment.