* Fix exec parameter parsing (#580) Exec seems to be broken byad6fbba806This change basically copies what's in remotecommand.NewOptions, just without the logging. (cherry picked from commit449eb3bb7d) * Don't set cancel function to nil on error Backported fromceb9b16c5c
This commit is contained in:
@@ -44,9 +44,9 @@ func loadTLSConfig(certPath, keyPath string) (*tls.Config, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
func setupHTTPServer(ctx context.Context, cfg *apiServerConfig) (cancel func(), retErr error) {
|
||||
func setupHTTPServer(ctx context.Context, cfg *apiServerConfig) (_ func(), retErr error) {
|
||||
var closers []io.Closer
|
||||
cancel = func() {
|
||||
cancel := func() {
|
||||
for _, c := range closers {
|
||||
c.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user