adds comments and removes redundant false flag setting

This commit is contained in:
Erik Evenson
2016-02-29 08:17:40 -06:00
parent 4aa575b502
commit d5142c25dc

View File

@@ -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