Merge pull request #10915 from laozc/fix-gp

Fix provider name not work when specified
This commit is contained in:
Chris Roberts 2019-06-20 11:22:01 -07:00 committed by GitHub
commit fef8316b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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