Merge pull request #10915 from laozc/fix-gp
Fix provider name not work when specified
This commit is contained in:
commit
fef8316b3c
|
@ -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