Skip to content

Commit

Permalink
ACL entry Subnet should be integer type (missed references) (#290)
Browse files Browse the repository at this point in the history
* subnet should be an int

* fix tests
  • Loading branch information
Integralist committed Jul 23, 2021
1 parent 049137c commit 600e6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fastly/acl_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ type CreateACLEntryInput struct {
IP string `form:"ip"`

// Optional fields
Subnet string `form:"subnet,omitempty"`
Subnet int `form:"subnet,omitempty"`
Negated bool `form:"negated,omitempty"`
Comment string `form:"comment,omitempty"`
}
Expand Down Expand Up @@ -191,7 +191,7 @@ type UpdateACLEntryInput struct {

// Optional fields
IP *string `form:"ip,omitempty"`
Subnet *string `form:"subnet,omitempty"`
Subnet *int `form:"subnet,omitempty"`
Negated *bool `form:"negated,omitempty"`
Comment *string `form:"comment,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion fastly/acl_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestClient_ACLEntries(t *testing.T) {
ServiceID: testService.ID,
ACLID: testACL.ID,
IP: "10.0.0.3",
Subnet: "8",
Subnet: 8,
Negated: false,
Comment: "test entry",
})
Expand Down

0 comments on commit 600e6d1

Please sign in to comment.