Merge pull request #1178 from IamTheFij/nomad-tls-null

Make sure Nomd TLSConfig struct exists before setting Insecure
This commit is contained in:
CrazyMax
2024-05-28 21:03:55 +02:00
committed by GitHub

View File

@@ -34,7 +34,9 @@ func (c *Client) listTaskImages() []model.Image {
}
if *c.config.TLSInsecure {
config.TLSConfig.Insecure = true
config.TLSConfig = &nomad.TLSConfig{
Insecure: true,
}
}
client, err := nomad.NewClient(config)