Fix build

returned wrong value, and forot a ":" :/
This commit is contained in:
Shiem Edelbrock 2015-11-05 17:57:51 -08:00
parent 1169bef912
commit 5e2430de74
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func (d *DockerDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool
return false, nil
}
privileged, err = strconv.ParseBool(d.config.ReadDefault("docker.privileged.enabled", "false"))
privileged, err := strconv.ParseBool(d.config.ReadDefault("docker.privileged.enabled", "false"))
if err != nil {
return false, fmt.Errorf("Unable to parse docker.privileged.enabled: %s", err)
}
@ -180,7 +180,7 @@ func (d *DockerDriver) createContainer(ctx *ExecContext, task *structs.Task) (do
if v, ok := task.Config["privileged"]; ok {
taskPrivileged, err := strconv.ParseBool(v)
if err != nil {
return hostConfig, fmt.Errorf("Unable to parse boolean value from task config option 'privileged': %s", err)
return c, fmt.Errorf("Unable to parse boolean value from task config option 'privileged': %s", err)
}
hostConfig.Privileged = taskPrivileged
}