Skip to content

Commit 0c97acc

Browse files
compute: resolve permadiff for display_name in google_compute_organization_security_policy (#15325)
1 parent 11be336 commit 0c97acc

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

mmv1/products/compute/OrganizationSecurityPolicy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ properties:
6161
User-provided name of the organization security policy. The name should be unique in the organization in which the security policy is created. This should only be used when SecurityPolicyType is FIREWALL.
6262
min_version: 'beta'
6363
immutable: true
64+
ignore_read: true
6465
- name: 'description'
6566
type: String
6667
description: |

mmv1/third_party/terraform/services/compute/resource_compute_organization_security_policy_test.go.tmpl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@ func TestAccComputeOrganizationSecurityPolicy_organizationSecurityPolicyUpdateEx
2626
Config: testAccComputeOrganizationSecurityPolicy_organizationSecurityPolicyPreUpdateExample(context),
2727
},
2828
{
29-
ResourceName: "google_compute_organization_security_policy.policy",
30-
ImportState: true,
31-
ImportStateVerify: true,
29+
ResourceName: "google_compute_organization_security_policy.policy",
30+
ImportState: true,
31+
ImportStateVerify: true,
32+
ImportStateVerifyIgnore: []string{"display_name"},
3233
},
3334
{
3435
Config: testAccComputeOrganizationSecurityPolicy_organizationSecurityPolicyPostUpdateExample(context),
3536
},
3637
{
37-
ResourceName: "google_compute_organization_security_policy.policy",
38-
ImportState: true,
39-
ImportStateVerify: true,
38+
ResourceName: "google_compute_organization_security_policy.policy",
39+
ImportState: true,
40+
ImportStateVerify: true,
41+
ImportStateVerifyIgnore: []string{"display_name"},
4042
},
4143
},
4244
})

0 commit comments

Comments
 (0)