Skip to content

Commit bff5ad9

Browse files
committed
Fixed calls to functions.
1 parent 6c27c73 commit bff5ad9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/drivers/linode/linode.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,14 @@ func (d *Driver) GetState() (state.State, error) {
326326
// Start a host
327327
func (d *Driver) Start() error {
328328
log.Debug("Start...")
329-
_, err := d.getClient().BootInstance(context.TODO(), d.InstanceID, 0)
329+
err := d.getClient().BootInstance(context.TODO(), d.InstanceID, 0)
330330
return err
331331
}
332332

333333
// Stop a host gracefully
334334
func (d *Driver) Stop() error {
335335
log.Debug("Stop...")
336-
_, err := d.getClient().ShutdownInstance(context.TODO(), d.InstanceID)
336+
err := d.getClient().ShutdownInstance(context.TODO(), d.InstanceID)
337337
return err
338338
}
339339

@@ -356,14 +356,14 @@ func (d *Driver) Remove() error {
356356
// have any special restart behaviour.
357357
func (d *Driver) Restart() error {
358358
log.Debug("Restarting...")
359-
_, err := d.getClient().RebootInstance(context.TODO(), d.InstanceID, 0)
359+
err := d.getClient().RebootInstance(context.TODO(), d.InstanceID, 0)
360360
return err
361361
}
362362

363363
// Kill stops a host forcefully
364364
func (d *Driver) Kill() error {
365365
log.Debug("Killing...")
366-
_, err := d.getClient().ShutdownInstance(context.TODO(), d.InstanceID)
366+
err := d.getClient().ShutdownInstance(context.TODO(), d.InstanceID)
367367
return err
368368
}
369369

0 commit comments

Comments
 (0)