Skip to content

Commit

Permalink
fix(runner): config is not present at runner instanciation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLonguet committed May 21, 2024
1 parent cee69d8 commit ce70baf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ type TerraformExec interface {
}

func New(c *config.Config) *Runner {
client := datastore.NewDefaultClient()
if c.Datastore.TLS {
log.Info("using TLS for datastore")
client.Scheme = "https"
}
return &Runner{
config: c,
datastore: client,
config: c,
}
}

func (r *Runner) Exec() error {
client := datastore.NewDefaultClient()
if r.config.Datastore.TLS {
log.Info("using TLS for datastore")
client.Scheme = "https"
}
r.datastore = client
var commit string
ann := map[string]string{}

Expand Down

0 comments on commit ce70baf

Please sign in to comment.