mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(apigateway): container log and exec (#20526)
This commit is contained in:
@@ -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}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user