Skip to content

Commit

Permalink
Cleanup comments/whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Oct 13, 2016
1 parent 487a498 commit af8a20b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/driver/lxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
)

const (

// containerMonitorIntv is the interval at which the driver checks if the
// container is still alive
containerMonitorIntv = 2 * time.Second
Expand Down Expand Up @@ -229,20 +228,17 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e
return nil, fmt.Errorf("faild getting secret path for task: %v", err)
}
mounts := []string{
// local
fmt.Sprintf("%s local none rw,bind,create=dir", taskLocalDir),
// alloc
fmt.Sprintf("%s alloc none rw,bind,create=dir", ctx.AllocDir.SharedDir),
// secret
fmt.Sprintf("%s secret none rw,bind,create=dir", secretdir),
}

for _, mnt := range mounts {
if err := c.SetConfigItem("lxc.mount.entry", mnt); err != nil {
return nil, fmt.Errorf("error setting bind mount %q error: %v", mnt, err)
}
}

// Start the container
if err := c.Start(); err != nil {
return nil, fmt.Errorf("unable to start container: %v", err)
}
Expand Down

0 comments on commit af8a20b

Please sign in to comment.