fix: allow vagrant up by name
This commit is contained in:
parent
7560c7fdef
commit
f959ff93e0
|
@ -238,7 +238,7 @@ module Vagrant
|
|||
# @return [Hash]
|
||||
def find_by_prefix(prefix)
|
||||
@machines.each do |uuid, data|
|
||||
return data.merge("id" => uuid) if uuid.start_with?(prefix)
|
||||
return data.merge("id" => uuid) if uuid.start_with?(prefix) or data['name'] == prefix
|
||||
end
|
||||
|
||||
nil
|
||||
|
|
Loading…
Reference in New Issue