mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
runtime: rename GetSanboxesStoragePath() --> GetSandboxesStoragePath()
Add the missing 'd'.
Fixes: #2738
Suggested-by: Jakob Naucke <jakob.naucke@ibm.com>
Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
(cherry picked from commit 315295e0ef
)
This commit is contained in:
parent
b0aca51eac
commit
97167ccddd
@ -184,12 +184,12 @@ func (s *service) mountPprofHandle(m *http.ServeMux, ociSpec *specs.Spec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetSandboxesStoragePath returns the storage path where sandboxes info are stored
|
// GetSandboxesStoragePath returns the storage path where sandboxes info are stored
|
||||||
func GetSanboxesStoragePath() string {
|
func GetSandboxesStoragePath() string {
|
||||||
return filepath.Join(string(filepath.Separator), "run", "vc", "sbs")
|
return filepath.Join(string(filepath.Separator), "run", "vc", "sbs")
|
||||||
}
|
}
|
||||||
|
|
||||||
// SocketAddress returns the address of the unix domain socket for communicating with the
|
// SocketAddress returns the address of the unix domain socket for communicating with the
|
||||||
// shim management endpoint
|
// shim management endpoint
|
||||||
func SocketAddress(id string) string {
|
func SocketAddress(id string) string {
|
||||||
return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), GetSanboxesStoragePath(), id, "shim-monitor.sock"))
|
return fmt.Sprintf("unix://%s", filepath.Join(string(filepath.Separator), GetSandboxesStoragePath(), id, "shim-monitor.sock"))
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ func getSandboxIDFromReq(r *http.Request) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getSandboxFS() string {
|
func getSandboxFS() string {
|
||||||
return shim.GetSanboxesStoragePath()
|
return shim.GetSandboxesStoragePath()
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkSandboxFSExists(sandboxID string) bool {
|
func checkSandboxFSExists(sandboxID string) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user