From ec0f619cf8c2e9432869a7c3333ed4c9cdf3f517 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Thu, 13 Jun 2024 20:47:19 +0800 Subject: [PATCH] fix(apigateway): container log and exec (#20526) --- pkg/mcclient/modules/webconsole/mod_webconsole.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mcclient/modules/webconsole/mod_webconsole.go b/pkg/mcclient/modules/webconsole/mod_webconsole.go index f1edb4c2bd..05eae4408b 100644 --- a/pkg/mcclient/modules/webconsole/mod_webconsole.go +++ b/pkg/mcclient/modules/webconsole/mod_webconsole.go @@ -128,13 +128,13 @@ func (m WebConsoleManager) DoContainerExec(s *mcclient.ClientSession, data jsonu args = append(args, "-f") } args = append(args, containerId) - return []string{"container-exec", containerId} + return []string{"container-exec", containerId, "sh"} }) } func (m WebConsoleManager) DoContainerLog(s *mcclient.ClientSession, data jsonutils.JSONObject) (jsonutils.JSONObject, error) { return m.doContainerAction(s, data, func(containerId string) []string { - return []string{"container-log", containerId, "sh"} + return []string{"container-log", containerId} }) }