Skip to content

Commit

Permalink
outscale_oapi: remove un-needed return from forceShutDownVms
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Nov 12, 2021
1 parent 486c16f commit 5bde89b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/providers/outscale_oapi/outscale_oapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (provider *OutscaleOAPI) readVms() []Object {
return vms
}

func (provider *OutscaleOAPI) forceShutdownVms(vms []Object) error {
func (provider *OutscaleOAPI) forceShutdownVms(vms []Object) {
var vmsToForce []Object
for _, vmId := range vms {
vm := provider.cache.Vms[vmId]
Expand All @@ -258,10 +258,9 @@ func (provider *OutscaleOAPI) forceShutdownVms(vms []Object) error {
if httpRes != nil {
fmt.Fprintln(os.Stderr, httpRes.Status)
}
return err
return
}
fmt.Println("OK")
return nil
}

func (provider *OutscaleOAPI) deleteVms(vms []Object) {
Expand Down

0 comments on commit 5bde89b

Please sign in to comment.