Skip to content

Commit

Permalink
Add comment and fix log line code style
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Oct 3, 2016
1 parent e74bf57 commit ed4ddeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ func (d *DockerDriver) Fingerprint(cfg *config.Config, node *structs.Node) (bool
node.Attributes[dockerDriverAttr] = "1"
node.Attributes["driver.docker.version"] = env.Get("Version")

// Advertise if this node supports Docker volumes (by default we do not)
if d.config.ReadBoolDefault(dockerVolumesConfigOption, false) {
node.Attributes["driver."+dockerVolumesConfigOption] = "1"
}
Expand Down Expand Up @@ -398,7 +399,7 @@ func (d *DockerDriver) containerBinds(driverConfig *DockerDriverConfig, alloc *a

volumesEnabled := d.config.ReadBoolDefault(dockerVolumesConfigOption, false)
if len(driverConfig.Volumes) > 0 && !volumesEnabled {
return nil, fmt.Errorf(dockerVolumesConfigOption+" is false; cannot use Docker Volumes: %+q", driverConfig.Volumes)
return nil, fmt.Errorf("%s is false; cannot use Docker Volumes: %+q", dockerVolumesConfigOption, driverConfig.Volumes)
}

if len(driverConfig.Volumes) > 0 {
Expand Down

0 comments on commit ed4ddeb

Please sign in to comment.