From b079674eacb735327ce6d8bee0c98dd82c530c63 Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Fri, 23 Jul 2021 15:24:22 +0100 Subject: [PATCH 1/2] subnet should be an int --- fastly/acl_entry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastly/acl_entry.go b/fastly/acl_entry.go index e0fd4e0c0..e8e417f33 100644 --- a/fastly/acl_entry.go +++ b/fastly/acl_entry.go @@ -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"` } @@ -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"` } From 99cc4105fd74ca2c7a2f1479e952ad6cff55157e Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Fri, 23 Jul 2021 15:27:06 +0100 Subject: [PATCH 2/2] fix tests --- fastly/acl_entry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastly/acl_entry_test.go b/fastly/acl_entry_test.go index ce6a97717..65e818d36 100644 --- a/fastly/acl_entry_test.go +++ b/fastly/acl_entry_test.go @@ -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", })