Fix active machine check to use common types when setting arguments

This commit is contained in:
Chris Roberts 2018-10-08 14:22:32 -07:00
parent 412290828b
commit d81abc1245
1 changed files with 1 additions and 1 deletions

View File

@ -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]