mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
kata-monitor: fix agentUrl from containerd shim
Fix the missing leading slash. Fixes: #9013 Signed-off-by: Guoqiang Ding <dgq8211@gmail.com>
This commit is contained in:
parent
e0bb632053
commit
7bf1ebe16d
@ -14,6 +14,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
containerdshim "github.com/kata-containers/kata-containers/src/runtime/pkg/containerd-shim-v2"
|
||||
"github.com/kata-containers/kata-containers/src/runtime/pkg/utils/shimclient"
|
||||
|
||||
"github.com/fsnotify/fsnotify"
|
||||
@ -183,7 +184,7 @@ func (km *KataMonitor) GetAgentURL(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
data, err := shimclient.DoGet(sandboxID, defaultTimeout, "agent-url")
|
||||
data, err := shimclient.DoGet(sandboxID, defaultTimeout, containerdshim.AgentUrl)
|
||||
if err != nil {
|
||||
commonServeError(w, http.StatusBadRequest, err)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user