mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Fix golint errors
This commit is contained in:
@@ -29,13 +29,13 @@ func appendEnv(array []string, key, value string) []string {
|
||||
|
||||
func environmentFromCloudConfig(cfg *config.CloudConfig) map[string]string {
|
||||
environment := cfg.Rancher.Environment
|
||||
if cfg.Rancher.Network.HttpProxy != "" {
|
||||
environment["http_proxy"] = cfg.Rancher.Network.HttpProxy
|
||||
environment["HTTP_PROXY"] = cfg.Rancher.Network.HttpProxy
|
||||
if cfg.Rancher.Network.HTTPProxy != "" {
|
||||
environment["http_proxy"] = cfg.Rancher.Network.HTTPProxy
|
||||
environment["HTTP_PROXY"] = cfg.Rancher.Network.HTTPProxy
|
||||
}
|
||||
if cfg.Rancher.Network.HttpsProxy != "" {
|
||||
environment["https_proxy"] = cfg.Rancher.Network.HttpsProxy
|
||||
environment["HTTPS_PROXY"] = cfg.Rancher.Network.HttpsProxy
|
||||
if cfg.Rancher.Network.HTTPSProxy != "" {
|
||||
environment["https_proxy"] = cfg.Rancher.Network.HTTPSProxy
|
||||
environment["HTTPS_PROXY"] = cfg.Rancher.Network.HTTPSProxy
|
||||
}
|
||||
if cfg.Rancher.Network.NoProxy != "" {
|
||||
environment["no_proxy"] = cfg.Rancher.Network.NoProxy
|
||||
|
Reference in New Issue
Block a user