Added missing %s to error format string

This commit is contained in:
Chris Bednarski
2015-11-18 11:28:07 -08:00
parent 25484421d9
commit f4acdfd035
3 changed files with 8 additions and 2 deletions

View File

@@ -431,7 +431,7 @@ func (d *DockerDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle
if len(containers) != 1 {
log.Printf("[ERR] driver.docker: failed to get id for container %s", config.Name)
return nil, fmt.Errorf("Failed to get id for container %s", config.Name, err)
return nil, fmt.Errorf("Failed to get id for container %s: %s", config.Name, err)
}
log.Printf("[INFO] driver.docker: a container with the name %s already exists; will attempt to purge and re-create", config.Name)

View File

@@ -545,3 +545,9 @@ func TestDockerDNS(t *testing.T) {
t.Errorf("DNS Servers don't match.\nExpected:\n%s\nGot:\n%s\n", task.Config["dns_search_domains"], container.HostConfig.DNSSearch)
}
}
func TestDockerAuth(t *testing.T) {
if !dockerIsConnected(t) {
t.SkipNow()
}
}

View File

@@ -1,5 +1,5 @@
source "https://rubygems.org"
ruby "2.2.2"
ruby "2.2.3"
gem "middleman-hashicorp", github: "hashicorp/middleman-hashicorp"