Merge pull request #11098 from briancain/finalize-ansible-config-values
Fixes #10950: Ensure pip_install_cmd is finalized
This commit is contained in:
commit
968a126405
|
@ -21,7 +21,6 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_pip(machine, pip_install_cmd=DEFAULT_PIP_INSTALL_CMD)
|
def self.get_pip(machine, pip_install_cmd=DEFAULT_PIP_INSTALL_CMD)
|
||||||
|
|
||||||
# The objective here is to get pip either by default
|
# The objective here is to get pip either by default
|
||||||
# or by the argument passed in. The objective is not
|
# or by the argument passed in. The objective is not
|
||||||
# to circumvent the pip setup by passing in nothing.
|
# to circumvent the pip setup by passing in nothing.
|
||||||
|
|
|
@ -30,7 +30,7 @@ module VagrantPlugins
|
||||||
@install = true if @install == UNSET_VALUE
|
@install = true if @install == UNSET_VALUE
|
||||||
@install_mode = :default if @install_mode == UNSET_VALUE
|
@install_mode = :default if @install_mode == UNSET_VALUE
|
||||||
@pip_args = "" if @pip_args == UNSET_VALUE
|
@pip_args = "" if @pip_args == UNSET_VALUE
|
||||||
@pip_install_cmd = "" if @pip_args == UNSET_VALUE
|
@pip_install_cmd = "" if @pip_install_cmd == UNSET_VALUE
|
||||||
@provisioning_path = "/vagrant" if provisioning_path == UNSET_VALUE
|
@provisioning_path = "/vagrant" if provisioning_path == UNSET_VALUE
|
||||||
@tmp_path = "/tmp/vagrant-ansible" if tmp_path == UNSET_VALUE
|
@tmp_path = "/tmp/vagrant-ansible" if tmp_path == UNSET_VALUE
|
||||||
end
|
end
|
||||||
|
|
|
@ -61,6 +61,7 @@ describe VagrantPlugins::Ansible::Config::Guest do
|
||||||
expect(subject.install_mode).to eql(:default)
|
expect(subject.install_mode).to eql(:default)
|
||||||
expect(subject.provisioning_path).to eql("/vagrant")
|
expect(subject.provisioning_path).to eql("/vagrant")
|
||||||
expect(subject.tmp_path).to eql("/tmp/vagrant-ansible")
|
expect(subject.tmp_path).to eql("/tmp/vagrant-ansible")
|
||||||
|
expect(subject.pip_install_cmd).to eql("")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue