@@ -155,7 +155,7 @@ func resourceScalewayBaremetalServerCreate(ctx context.Context, d *schema.Resour
155
155
_ , err = baremetalAPI .WaitForServer (& baremetal.WaitForServerRequest {
156
156
Zone : server .Zone ,
157
157
ServerID : server .ID ,
158
- Timeout : scw .TimeDurationPtr (baremetalServerWaitForTimeout ),
158
+ Timeout : scw .TimeDurationPtr (d . Timeout ( schema . TimeoutCreate ) ),
159
159
RetryInterval : DefaultWaitRetryInterval ,
160
160
})
161
161
if err != nil {
@@ -176,7 +176,7 @@ func resourceScalewayBaremetalServerCreate(ctx context.Context, d *schema.Resour
176
176
_ , err = baremetalAPI .WaitForServerInstall (& baremetal.WaitForServerInstallRequest {
177
177
Zone : server .Zone ,
178
178
ServerID : server .ID ,
179
- Timeout : scw .TimeDurationPtr (baremetalServerWaitForTimeout ),
179
+ Timeout : scw .TimeDurationPtr (d . Timeout ( schema . TimeoutCreate ) ),
180
180
RetryInterval : DefaultWaitRetryInterval ,
181
181
})
182
182
if err != nil {
@@ -263,7 +263,7 @@ func resourceScalewayBaremetalServerUpdate(ctx context.Context, d *schema.Resour
263
263
_ , err = baremetalAPI .WaitForServerInstall (& baremetal.WaitForServerInstallRequest {
264
264
Zone : server .Zone ,
265
265
ServerID : server .ID ,
266
- Timeout : scw .TimeDurationPtr (baremetalServerWaitForTimeout ),
266
+ Timeout : scw .TimeDurationPtr (d . Timeout ( schema . TimeoutUpdate ) ),
267
267
RetryInterval : DefaultWaitRetryInterval ,
268
268
})
269
269
if err != nil {
@@ -295,7 +295,7 @@ func resourceScalewayBaremetalServerDelete(ctx context.Context, d *schema.Resour
295
295
_ , err = baremetalAPI .WaitForServer (& baremetal.WaitForServerRequest {
296
296
Zone : server .Zone ,
297
297
ServerID : server .ID ,
298
- Timeout : scw .TimeDurationPtr (baremetalServerWaitForTimeout ),
298
+ Timeout : scw .TimeDurationPtr (d . Timeout ( schema . TimeoutDelete ) ),
299
299
RetryInterval : DefaultWaitRetryInterval ,
300
300
})
301
301
0 commit comments