Skip to content

Commit

Permalink
Only remove BOSH_ALL_PROXY and CREDHUB_PROXY when their specific vars…
Browse files Browse the repository at this point in the history
… are set or no vars are set
  • Loading branch information
Jeremy Alvis committed Oct 28, 2020
1 parent e5fef50 commit bd49646
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions commands/bosh_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ func (be BoshEnvironment) Execute(args []string) error {
}

variables := make(map[string]string)
unsetVariables := []string{
"BOSH_ALL_PROXY",
"CREDHUB_PROXY",
}
var unsetVariables []string

allEnvVars := !be.Options.BoshVars && !be.Options.CredhubVars

Expand All @@ -110,6 +107,7 @@ func (be BoshEnvironment) Execute(args []string) error {
"BOSH_CLIENT_SECRET",
"BOSH_ENVIRONMENT",
"BOSH_CA_CERT",
"BOSH_ALL_PROXY",
}...)
}

Expand All @@ -124,6 +122,7 @@ func (be BoshEnvironment) Execute(args []string) error {
"CREDHUB_SECRET",
"CREDHUB_SERVER",
"CREDHUB_CA_CERT",
"CREDHUB_PROXY",
}...)
}

Expand Down

0 comments on commit bd49646

Please sign in to comment.