module VagrantPlugins module Openstack module Action class Suspend def initialize(app, _env) @app = app end def call(env) if env[:machine].id env[:ui].info I18n.t('vagrant.actions.vm.suspend.suspending') env[:openstack_client].nova.suspend_server(env, env[:machine].id) end @app.call(env) end end end end end