Skip to content

Commit

Permalink
consume bootstrap token for now
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvinken committed Sep 29, 2024
1 parent b313e57 commit d358d97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/clients/consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string) terr
}

// Set credentials in Terraform provider configuration.
ps.Configuration = map[string]any{
"username": creds["username"],
"password": creds["password"],
if v, ok := creds["token"]; ok {
ps.Configuration["token"] = v
}
return ps, nil
}
Expand Down

0 comments on commit d358d97

Please sign in to comment.