diff --git a/plugins/providers/hyperv/action.rb b/plugins/providers/hyperv/action.rb index de43c7b21..49e2be33f 100644 --- a/plugins/providers/hyperv/action.rb +++ b/plugins/providers/hyperv/action.rb @@ -216,6 +216,7 @@ module VagrantPlugins autoload :StopInstance, action_root.join('stop_instance') autoload :SuspendVM, action_root.join("suspend_vm") autoload :WaitForIPAddress, action_root.join("wait_for_ip_address") + autoload :MessageWillNotDestroy, action_root.join("message_will_not_destroy") end end end diff --git a/plugins/providers/hyperv/action/message_will_not_destroy.rb b/plugins/providers/hyperv/action/message_will_not_destroy.rb new file mode 100644 index 000000000..bedb77b13 --- /dev/null +++ b/plugins/providers/hyperv/action/message_will_not_destroy.rb @@ -0,0 +1,17 @@ +module VagrantPlugins + module HyperV + module Action + class MessageWillNotDestroy + def initialize(app, env) + @app = app + end + + def call(env) + env[:ui].info I18n.t("vagrant.commands.destroy.will_not_destroy", + :name => env[:machine].name) + @app.call(env) + end + end + end + end +end