Skip to content

Commit 52c1097

Browse files
committed
fix fmt
1 parent 874f583 commit 52c1097

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

internal/services/instance/helpers_instance.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const (
4141
defaultInstancePlacementGroupTimeout = 1 * time.Minute
4242
defaultInstanceIPTimeout = 1 * time.Minute
4343
defaultInstanceIPReverseDNSTimeout = 10 * time.Minute
44-
defaultFileSystemWaitTimeout = 15 * time.Minute
4544

4645
defaultInstanceSnapshotWaitTimeout = 1 * time.Hour
4746

internal/services/instance/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
11341134
return diagnostics
11351135
}
11361136

1137-
_, err := waitForFilesystems(ctx, api.API, zone, id, *scw.TimeDurationPtr(defaultFileSystemWaitTimeout))
1137+
_, err := waitForFilesystems(ctx, api.API, zone, id, *scw.TimeDurationPtr(DefaultInstanceServerWaitTimeout)
11381138
if err != nil {
11391139
return diag.FromErr(err)
11401140
}
@@ -1239,7 +1239,6 @@ func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m
12391239
return append(warnings, ResourceInstanceServerRead(ctx, d, m)...)
12401240
}
12411241

1242-
12431242
func attachNewFileSystem(newIDs map[string]struct{}, oldIDs map[string]struct{}, api *instancehelpers.BlockAndInstanceAPI, zone scw.Zone, server *instanceSDK.Server) (diag.Diagnostics, bool) {
12441243
for id := range newIDs {
12451244
if _, alreadyAttached := oldIDs[id]; !alreadyAttached {

internal/services/instance/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ func flattenServerPublicIPs(zone scw.Zone, ips []*instance.ServerIP) []any {
102102
return flattenedIPs
103103
}
104104

105-
106105
func flattenServerFileSystem(zone scw.Zone, fs []*instance.ServerFilesystem) []interface{} {
107106
filesystems := make([]interface{}, len(fs))
108107
region, _ := zone.Region()

0 commit comments

Comments
 (0)