From d81abc124516060b80eef5016ca44ea98a848446 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 8 Oct 2018 14:22:32 -0700 Subject: [PATCH] Fix active machine check to use common types when setting arguments --- plugins/commands/upload/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]