mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
adds comments and removes redundant false flag setting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user