Skip to content

Commit d0855c8

Browse files
committed
lint
1 parent 8dc150c commit d0855c8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

internal/services/instance/ip_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ func TestAccIP_RoutedIPV6_Attached(t *testing.T) {
134134
defer tt.Cleanup()
135135

136136
resource.ParallelTest(t, resource.TestCase{
137-
ProviderFactories: tt.ProviderFactories,
138-
CheckDestroy: instancechecks.IsIPDestroyed(tt),
137+
ProtoV6ProviderFactories: tt.ProviderFactories,
138+
CheckDestroy: instancechecks.IsIPDestroyed(tt),
139139
Steps: []resource.TestStep{
140140
{
141141
Config: `

internal/services/instance/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,13 +1382,15 @@ func ResourceInstanceServerUpdateIPs(ctx context.Context, d *schema.ResourceData
13821382
}
13831383

13841384
var schemaIPs []any
1385+
13851386
switch attribute {
13861387
case "ip_id":
13871388
schemaIP := d.Get(attribute).(string)
13881389
schemaIPs = append(schemaIPs, schemaIP)
13891390
case "ip_ids":
13901391
schemaIPs = d.Get(attribute).([]any)
13911392
}
1393+
13921394
requestedIPs := make(map[string]bool, len(schemaIPs))
13931395

13941396
// Gather request IPs in a map

internal/services/instance/server_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,7 @@ func TestAccServer_PrivateNetworkMissingPNIC(t *testing.T) {
21972197

21982198
func TestAccServer_AdminPasswordEncryptionSSHKeyID(t *testing.T) {
21992199
t.Skip("There is currently a bug when resetting the field, we should reinstate the test once the fix has been deployed")
2200+
22002201
tt := acctest.NewTestTools(t)
22012202
defer tt.Cleanup()
22022203

0 commit comments

Comments
 (0)