Skip to content

Commit 3e63908

Browse files
authored
Merge pull request #2020 from ranjib/template_args_lxc
(bug)Fix error message. Pass on template args
2 parents d31d440 + 1aaceaf commit 3e63908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/driver/lxc.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e
182182
containerName := fmt.Sprintf("%s-%s", task.Name, ctx.AllocID)
183183
c, err := lxc.NewContainer(containerName, lxcPath)
184184
if err != nil {
185-
return nil, fmt.Errorf("unable to create container: %v", err)
185+
return nil, fmt.Errorf("unable to initialize container: %v", err)
186186
}
187187

188188
var verbosity lxc.Verbosity
@@ -223,6 +223,7 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e
223223
Arch: driverConfig.Arch,
224224
FlushCache: driverConfig.FlushCache,
225225
DisableGPGValidation: driverConfig.DisableGPGValidation,
226+
ExtraArgs: driverConfig.TemplateArgs,
226227
}
227228

228229
if err := c.Create(options); err != nil {

0 commit comments

Comments
 (0)