Skip to content

Commit

Permalink
Merge pull request #224 from arianvp/start-server-bug
Browse files Browse the repository at this point in the history
Fix bug that starting an already started server succeeds.
  • Loading branch information
moul committed Oct 19, 2015
2 parents 98a4665 + b9b35a4 commit e8825d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func StartServer(api *ScalewayAPI, needle string, wait bool) error {

err := api.PostServerAction(server, "poweron")
if err != nil {
if err.Error() != "server should be stopped" {
if err.Error() == "server should be stopped" {
return fmt.Errorf("server %s is already started: %v", server, err)
}
}
Expand Down

0 comments on commit e8825d4

Please sign in to comment.