Skip to content

Commit 8b90bfb

Browse files
Fixed issues caused by breaking change in linodego v1.67.0
1 parent ad189fe commit 8b90bfb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

builder/linode/step_create_linode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func flattenVLANInterface(vlan *VLANInterface) *linodego.VLANInterface {
112112
}
113113

114114
func flattenLinodeInterface(li LinodeInterface) (opts linodego.LinodeInterfaceCreateOptions) {
115-
opts.FirewallID = linodego.Pointer(li.FirewallID)
115+
opts.FirewallID = li.FirewallID
116116

117117
if li.DefaultRoute != nil {
118118
opts.DefaultRoute = &linodego.InterfaceDefaultRoute{

builder/linode/step_create_linode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func TestFlattenLinodeInterface_AllFields(t *testing.T) {
151151
}
152152

153153
got := flattenLinodeInterface(li)
154-
if got.FirewallID == nil || *got.FirewallID == nil || **got.FirewallID != 123 {
154+
if got.FirewallID == nil || *got.FirewallID != 123 {
155155
t.Fatalf("firewall_id = %v, want 123", got.FirewallID)
156156
}
157157
if got.DefaultRoute == nil || got.DefaultRoute.IPv4 == nil || !*got.DefaultRoute.IPv4 {

0 commit comments

Comments
 (0)