mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 21:33:22 +01:00
Merge pull request #1178 from IamTheFij/nomad-tls-null
Make sure Nomd TLSConfig struct exists before setting Insecure
This commit is contained in:
@@ -34,7 +34,9 @@ func (c *Client) listTaskImages() []model.Image {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if *c.config.TLSInsecure {
|
if *c.config.TLSInsecure {
|
||||||
config.TLSConfig.Insecure = true
|
config.TLSConfig = &nomad.TLSConfig{
|
||||||
|
Insecure: true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
client, err := nomad.NewClient(config)
|
client, err := nomad.NewClient(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user