Fix provider name not work when specified
Provider name should be symbol in guess_provider.
This commit is contained in:
parent
206ff9d4ca
commit
caae214bf7
|
@ -938,7 +938,7 @@ module Vagrant
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return gp if gp
|
return gp.to_sym if gp
|
||||||
begin
|
begin
|
||||||
default_provider
|
default_provider
|
||||||
rescue Errors::NoDefaultProvider
|
rescue Errors::NoDefaultProvider
|
||||||
|
|
|
@ -1447,7 +1447,7 @@ VF
|
||||||
let(:argv) { ["--provider=single_arg"] }
|
let(:argv) { ["--provider=single_arg"] }
|
||||||
|
|
||||||
it "should return the provider name" do
|
it "should return the provider name" do
|
||||||
expect(subject.send(:guess_provider)).to eq("single_arg")
|
expect(subject.send(:guess_provider)).to eq(:single_arg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1455,7 +1455,7 @@ VF
|
||||||
let(:argv) { ["--provider", "double_arg"] }
|
let(:argv) { ["--provider", "double_arg"] }
|
||||||
|
|
||||||
it "should return the provider name" do
|
it "should return the provider name" do
|
||||||
expect(subject.send(:guess_provider)).to eq("double_arg")
|
expect(subject.send(:guess_provider)).to eq(:double_arg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue