From 1aaceafecc0ecc495e7acbeddfc7700d07c2f5c2 Mon Sep 17 00:00:00 2001 From: Ranjib Dey Date: Mon, 21 Nov 2016 20:12:59 -0800 Subject: [PATCH] Fix error message. Pass on template args --- client/driver/lxc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/driver/lxc.go b/client/driver/lxc.go index 57e78ca5d..5aae27cb5 100644 --- a/client/driver/lxc.go +++ b/client/driver/lxc.go @@ -182,7 +182,7 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e containerName := fmt.Sprintf("%s-%s", task.Name, ctx.AllocID) c, err := lxc.NewContainer(containerName, lxcPath) if err != nil { - return nil, fmt.Errorf("unable to create container: %v", err) + return nil, fmt.Errorf("unable to initialize container: %v", err) } var verbosity lxc.Verbosity @@ -223,6 +223,7 @@ func (d *LxcDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e Arch: driverConfig.Arch, FlushCache: driverConfig.FlushCache, DisableGPGValidation: driverConfig.DisableGPGValidation, + ExtraArgs: driverConfig.TemplateArgs, } if err := c.Create(options); err != nil {