From a29f8b7b71d75f0636207eeb730dcdb0c2d6de23 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 8 Aug 2019 16:03:05 +0000 Subject: [PATCH] Fixed vagrant issue with proxy proxy_ip_list variable had scope issues, used as global variable initially then as a local variable. Changed all to global. Signed-off-by: root --- clr-k8s-examples/Vagrantfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clr-k8s-examples/Vagrantfile b/clr-k8s-examples/Vagrantfile index 795b449..a17c7c3 100644 --- a/clr-k8s-examples/Vagrantfile +++ b/clr-k8s-examples/Vagrantfile @@ -60,7 +60,7 @@ Vagrant.configure("2") do |config| end $hosts.each do |vm_name, ip| - proxy_ip_list = ("#{proxy_ip_list},#{vm_name},#{ip}") + $proxy_ip_list = ("#{$proxy_ip_list},#{vm_name},#{ip}") end $hosts.each do |vm_name, ip| @@ -81,7 +81,7 @@ Vagrant.configure("2") do |config| if Vagrant.has_plugin?("vagrant-proxyconf") c.proxy.http = (ENV['http_proxy']||ENV['HTTP_PROXY']) c.proxy.https = (ENV['https_proxy']||ENV['HTTPS_PROXY']) - c.proxy.no_proxy = (ENV['no_proxy']+"#{proxy_ip_list}" || ENV['NO_PROXY']+"#{proxy_ip_list}" || "localhost,127.0.0.1,172.16.10.10#{proxy_ip_list}") + c.proxy.no_proxy = (ENV['no_proxy']+"#{$proxy_ip_list}" || ENV['NO_PROXY']+"#{$proxy_ip_list}" || "localhost,127.0.0.1,172.16.10.10#{$proxy_ip_list}") end end c.vm.provision "shell", privileged: false, path: "setup_system.sh", env: {"RUNNER" => $runner}