Skip to content

Commit

Permalink
Adding notify statement to valide input
Browse files Browse the repository at this point in the history
  • Loading branch information
alexissavin committed Jan 8, 2021
1 parent 8075355 commit becbdcb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions solidserver/resource_dns_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"log"
"net/url"
"regexp"
Expand Down Expand Up @@ -64,11 +65,12 @@ func resourcednszone() *schema.Resource {
Default: false,
},
"notify": {
Type: schema.TypeString,
Description: "The expected notify behavior (Supported: empty (Inherited), Yes, No, Explicit; Default: empty (Inherited).",
Optional: true,
ForceNew: false,
Default: "",
Type: schema.TypeString,
Description: "The expected notify behavior (Supported: empty (Inherited), Yes, No, Explicit; Default: empty (Inherited).",
Optional: true,
ForceNew: false,
Default: "",
ValidateFunc: validation.StringInSlice([]string{"", "yes", "no", "explicit"}, false),
},
"also_notify": {
Type: schema.TypeList,
Expand Down

0 comments on commit becbdcb

Please sign in to comment.