From d358d97447deac435f022061b27569b8506fc4c0 Mon Sep 17 00:00:00 2001 From: Daan Vinken Date: Sun, 29 Sep 2024 20:43:23 +0200 Subject: [PATCH] consume bootstrap token for now --- internal/clients/consul.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/clients/consul.go b/internal/clients/consul.go index 9906a1f..94ddbfc 100644 --- a/internal/clients/consul.go +++ b/internal/clients/consul.go @@ -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 }