Skip to content

Commit

Permalink
Add defaults for expr and description to prevent spurious diffs (#5997)
Browse files Browse the repository at this point in the history
* Add defaults for expr and description to prevent spurious diffs

* Handwritten instead
  • Loading branch information
slevenick authored May 6, 2022
1 parent 9ee1658 commit 5d899ec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func resourceComputeSecurityPolicy() *schema.Resource {
"versioned_expr": {
Type: schema.TypeString,
Optional: true,
Default: "",
ValidateFunc: validation.StringInSlice([]string{"SRC_IPS_V1"}, false),
Description: `Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config.`,
},
Expand Down Expand Up @@ -150,6 +151,7 @@ func resourceComputeSecurityPolicy() *schema.Resource {

"description": {
Type: schema.TypeString,
Default: "",
Optional: true,
Description: `An optional description of this rule. Max size is 64.`,
},
Expand Down

0 comments on commit 5d899ec

Please sign in to comment.