From f428b288f3187778cbc956e632139e53765d29f2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 30 Dec 2012 18:08:07 -1000 Subject: [PATCH] Convert provider to symbol only if non-nil --- lib/vagrant/plugin/v2/command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/plugin/v2/command.rb b/lib/vagrant/plugin/v2/command.rb index c3f01bb21..59d343c89 100644 --- a/lib/vagrant/plugin/v2/command.rb +++ b/lib/vagrant/plugin/v2/command.rb @@ -98,7 +98,8 @@ module Vagrant # get_machine = lambda do |name| # Check for an active machine with the same name - provider_to_use = options[:provider].to_sym + provider_to_use = options[:provider] + provider_to_use = provider_to_use.to_sym if provider_to_use @env.active_machines.each do |active_name, active_provider| if name == active_name