diff --git a/lib/vagrant-scaleway/action/destroy_server.rb b/lib/vagrant-scaleway/action/destroy_server.rb index 009f300..bc8211c 100644 --- a/lib/vagrant-scaleway/action/destroy_server.rb +++ b/lib/vagrant-scaleway/action/destroy_server.rb @@ -17,7 +17,7 @@ def call(env) server.destroy rescue Fog::Scaleway::Compute::InvalidRequestError => e if e.message =~ /server should be stopped/ - server.terminate(false) + server.terminate(true) else raise end diff --git a/lib/vagrant-scaleway/action/stop_server.rb b/lib/vagrant-scaleway/action/stop_server.rb index 48cd34e..af9ab84 100644 --- a/lib/vagrant-scaleway/action/stop_server.rb +++ b/lib/vagrant-scaleway/action/stop_server.rb @@ -14,7 +14,7 @@ def call(env) env[:ui].info(I18n.t('vagrant_scaleway.already_status', status: env[:machine].state.id)) else env[:ui].info(I18n.t('vagrant_scaleway.stopping')) - server.poweroff(false) + server.poweroff(true) end @app.call(env)