Single-VM mode still allows target name in vagrant commands
This commit is contained in:
parent
bc0643613a
commit
8c6f3edf2d
|
@ -20,6 +20,8 @@
|
|||
localhost on Linux machines. This fixes issues with 12.04. [GH-909]
|
||||
- Fix issue where Vagrant didn't properly detect VBoxManage on Windows
|
||||
if VBOX_INSTALL_PATH contained multiple paths. [GH-885]
|
||||
- All `vagrant` commands that can take a target VM name can take one even
|
||||
if you're not in a multi-VM environment. [GH-894]
|
||||
|
||||
## 1.0.3 (May 1, 2012)
|
||||
|
||||
|
|
|
@ -79,8 +79,6 @@ module Vagrant
|
|||
vms = []
|
||||
if names.length > 0
|
||||
names.each do |name|
|
||||
raise Errors::MultiVMEnvironmentRequired if !@env.multivm?
|
||||
|
||||
if pattern = name[/^\/(.+?)\/$/, 1]
|
||||
# This is a regular expression name, so we convert to a regular
|
||||
# expression and allow that sort of matching.
|
||||
|
|
|
@ -68,13 +68,6 @@ describe Vagrant::Command::Base do
|
|||
to raise_error(Vagrant::Errors::NoEnvironmentError)
|
||||
end
|
||||
|
||||
it "should raise an exception if a name is given in a non-multivm environment" do
|
||||
environment.stub(:multivm?).and_return(false)
|
||||
|
||||
expect { instance.with_target_vms("foo") }.
|
||||
to raise_error(Vagrant::Errors::MultiVMEnvironmentRequired)
|
||||
end
|
||||
|
||||
it "should yield every VM in order is no name is given" do
|
||||
foo_vm = double("foo")
|
||||
foo_vm.stub(:name).and_return("foo")
|
||||
|
|
Loading…
Reference in New Issue