Fix provider name not work when specified

Provider name should be symbol in guess_provider.
This commit is contained in:
Zhongcheng Lao 2019-06-17 08:21:14 +08:00
parent 206ff9d4ca
commit caae214bf7
2 changed files with 3 additions and 3 deletions

View File

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

View File

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