mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Make sure Nomd TLSConfig struct exists before setting Insecure
Fixes #1074
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user