From d5142c25dcd26769aa85a6352fca37ebeb85f32f Mon Sep 17 00:00:00 2001 From: Erik Evenson Date: Mon, 29 Feb 2016 08:17:40 -0600 Subject: [PATCH] adds comments and removes redundant false flag setting --- client/driver/docker.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/driver/docker.go b/client/driver/docker.go index 7bbc71a99..53247790c 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -60,7 +60,7 @@ type DockerDriverConfig struct { LabelsRaw []map[string]string `mapstructure:"labels"` // Labels map[string]string `mapstructure:"-"` // Labels to set when the container starts up Auth []DockerDriverAuth `mapstructure:"auth"` // Authentication credentials for a private Docker registry - SSL bool `mapstructure:"ssl"` + SSL bool `mapstructure:"ssl"` // Flag indicating repository is served via https } func (c *DockerDriverConfig) Validate() error { @@ -413,8 +413,6 @@ func (d *DockerDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle if strings.Contains(driverConfig.ImageName, "https://") { driverConfig.SSL = true driverConfig.ImageName = strings.Replace(driverConfig.ImageName, "https://", "", 1) - } else { - driverConfig.SSL = false } image := driverConfig.ImageName