diff --git a/plugins/commands/upload/command.rb b/plugins/commands/upload/command.rb index 2a72947b1..298538926 100644 --- a/plugins/commands/upload/command.rb +++ b/plugins/commands/upload/command.rb @@ -42,7 +42,7 @@ module VagrantPlugins source, destination, guest = argv when 2, 1 source = argv[0] - if @env.active_machines.map(&:first).include?(argv[1]) + if @env.active_machines.map(&:first).map(&:to_s).include?(argv[1]) guest = argv[1] else destination = argv[1]