Skip to content

Commit

Permalink
Merge pull request openshift#88 from pmorie/master
Browse files Browse the repository at this point in the history
Remove unused arg from namespaces.NsEnter
  • Loading branch information
Michael Crosby committed Jul 14, 2014
2 parents 8c0303d + ea6e255 commit af4d853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions namespaces/execin.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func ExecIn(container *libcontainer.Config, state *libcontainer.State, args []st
panic("unreachable")
}

// NsEnter is run after entering the namespace.
func NsEnter(container *libcontainer.Config, nspid int, args []string) error {
// Run a command in a container after entering the namespace.
func NsEnter(container *libcontainer.Config, args []string) error {
// clear the current processes env and replace it with the environment
// defined on the container
if err := LoadContainerEnvironment(container); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion nsinit/nsenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func nsenterAction(context *cli.Context) {
log.Fatalf("cannot enter into namespaces without valid pid: %q", nspid)
}

if err := namespaces.NsEnter(container, nspid, args); err != nil {
if err := namespaces.NsEnter(container, args); err != nil {
log.Fatalf("failed to nsenter: %s", err)
}
}

0 comments on commit af4d853

Please sign in to comment.