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
|
||||
end
|
||||
end
|
||||
return gp if gp
|
||||
return gp.to_sym if gp
|
||||
begin
|
||||
default_provider
|
||||
rescue Errors::NoDefaultProvider
|
||||
|
|
|
@ -1447,7 +1447,7 @@ VF
|
|||
let(:argv) { ["--provider=single_arg"] }
|
||||
|
||||
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
|
||||
|
||||
|
@ -1455,7 +1455,7 @@ VF
|
|||
let(:argv) { ["--provider", "double_arg"] }
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue