Fix Vagrantfile for no_proxy is empty

ENV["no_proxy"] is nil if the environment variable is empty, but
expected as empty string "" wrongly. This update is to fix the mistake.

Closes-Bug: #1991327
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I84c4631eed2eb56448077eb51ff4b2341f08ac2b
changes/95/859895/1
Yasufumi Ogawa 4 months ago
parent 286234013e
commit 77ecc2a7b3

@ -60,7 +60,7 @@ Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
server.proxy.http = ENV["http_proxy"]
server.proxy.https = ENV["https_proxy"]
if ENV["no_proxy"] != ""
if ENV["no_proxy"] != nil
server.proxy.no_proxy = ENV["no_proxy"] +
"," + machine.private_ips.join(",")
end

Loading…
Cancel
Save