New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #2541 Fix: Proxy env variable to be cleared upon restart #2542
Conversation
@praveenkumar Need rebase. |
I am not able to test the PR till now
|
@@ -94,6 +94,9 @@ func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error) { | |||
if err := api.Save(h); err != nil { | |||
return nil, fmt.Errorf("Error saving started host: %s", err) | |||
} | |||
if err := setProxyToShell(config, h); err != nil { | |||
return nil, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@praveenkumar May be should add a meaningful string to the err e.g. fmt.Errorf("Error setting proxy variables to shell : %s", err)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
Fixes #2541