Skip to content

Commit

Permalink
confusing internal methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Nov 22, 2021
1 parent 4480dd2 commit 29e99cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,15 @@ func (c *ContainerdRuntime) GetNSPath(ctx context.Context, containername string)
return "/proc/" + strconv.Itoa(int(task.Pid())) + "/ns/net", nil
}
func (c *ContainerdRuntime) Exec(ctx context.Context, containername string, cmd []string) ([]byte, []byte, error) {
return c.exec(ctx, containername, cmd, false)
return c.internalExec(ctx, containername, cmd, false)
}

func (c *ContainerdRuntime) ExecNotWait(ctx context.Context, containername string, cmd []string) error {
_, _, err := c.exec(ctx, containername, cmd, true)
_, _, err := c.internalExec(ctx, containername, cmd, true)
return err
}

func (c *ContainerdRuntime) exec(ctx context.Context, containername string, cmd []string, detach bool) ([]byte, []byte, error) { //skipcq: RVV-A0005
func (c *ContainerdRuntime) internalExec(ctx context.Context, containername string, cmd []string, detach bool) ([]byte, []byte, error) { //skipcq: RVV-A0005

clabExecId := "clabexec"
ctx = namespaces.WithNamespace(ctx, containerdNamespace)
Expand Down

0 comments on commit 29e99cb

Please sign in to comment.