Fix typo in WithoutRunMount
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
parent
e4ebb718c6
commit
8ba5c02f8f
@ -83,9 +83,9 @@ func mergeGids(gids1, gids2 []uint32) []uint32 {
|
|||||||
func WithoutRunMount(_ context.Context, _ oci.Client, c *containers.Container, s *runtimespec.Spec) error {
|
func WithoutRunMount(_ context.Context, _ oci.Client, c *containers.Container, s *runtimespec.Spec) error {
|
||||||
var (
|
var (
|
||||||
mounts []runtimespec.Mount
|
mounts []runtimespec.Mount
|
||||||
currnet = s.Mounts
|
current = s.Mounts
|
||||||
)
|
)
|
||||||
for _, m := range currnet {
|
for _, m := range current {
|
||||||
if filepath.Clean(m.Destination) == "/run" {
|
if filepath.Clean(m.Destination) == "/run" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user