diff --git a/internal/provider/nomad/task.go b/internal/provider/nomad/task.go index 9dc52a1d..8a24be6d 100644 --- a/internal/provider/nomad/task.go +++ b/internal/provider/nomad/task.go @@ -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)