From dedb8ce37622f215009539b7b6e05de78e0a23db Mon Sep 17 00:00:00 2001 From: Jordan Levin Date: Wed, 2 Oct 2024 09:29:03 -0700 Subject: [PATCH] revert changes Signed-off-by: Jordan Levin --- internal/clients/confluent.go | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/internal/clients/confluent.go b/internal/clients/confluent.go index a21af0d..7ed160a 100644 --- a/internal/clients/confluent.go +++ b/internal/clients/confluent.go @@ -71,21 +71,12 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string, sche } // Set credentials in Terraform provider configuration. - ps.Configuration = map[string]any{} - if cloudAPIKey, ok := creds[cloudAPIKey]; ok { - ps.Configuration[cloudAPIKey] = creds[cloudAPIKey] - } - if cloudAPISecret, ok := creds[cloudAPISecret]; ok { - ps.Configuration[cloudAPISecret] = creds[cloudAPISecret] - } - if kafkaAPIKey, ok := creds[kafkaAPIKey]; ok { - ps.Configuration[kafkaAPIKey] = creds[kafkaAPIKey] - } - if kafkaAPISecret, ok := creds[kafkaAPISecret]; ok { - ps.Configuration[kafkaAPISecret] = creds[kafkaAPISecret] - } - if kafkaRESTEndpoint, ok := creds[kafkaRESTEndpoint]; ok { - ps.Configuration[kafkaRESTEndpoint] = creds[kafkaRESTEndpoint] + ps.Configuration = map[string]any{ + cloudAPIKey: creds[cloudAPIKey], + cloudAPISecret: creds[cloudAPISecret], + kafkaAPIKey: creds[kafkaAPIKey], + kafkaAPISecret: creds[kafkaAPISecret], + kafkaRESTEndpoint: creds[kafkaRESTEndpoint], } return ps, nil }