From 7647f4ca3064797193fc948b71bdb88a6fc7d0c9 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Tue, 29 Oct 2024 11:01:33 -0500 Subject: [PATCH] remove unnecessary fmt.Sprintf calls --- equinix/data_source_metal_spot_market_price_acc_test.go | 5 ++--- equinix/resource_metal_project_api_key_acc_test.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/equinix/data_source_metal_spot_market_price_acc_test.go b/equinix/data_source_metal_spot_market_price_acc_test.go index c8e6a9e41..3df55dac0 100644 --- a/equinix/data_source_metal_spot_market_price_acc_test.go +++ b/equinix/data_source_metal_spot_market_price_acc_test.go @@ -1,7 +1,6 @@ package equinix import ( - "fmt" "testing" "github.com/hashicorp/terraform-plugin-testing/helper/resource" @@ -28,7 +27,7 @@ func TestAccDataSourceMetalSpotMarketPrice_basic(t *testing.T) { } func testAccDataSourceMetalSpotMarketPriceConfig_basic() string { - return fmt.Sprintf(` + return ` data "equinix_metal_spot_market_price" "metro" { metro = "sv" plan = "c3.medium.x86" @@ -38,5 +37,5 @@ data "equinix_metal_spot_market_price" "facility" { facility = "sv15" plan = "c3.medium.x86" } -`) +` } diff --git a/equinix/resource_metal_project_api_key_acc_test.go b/equinix/resource_metal_project_api_key_acc_test.go index 80b2fecac..c3f225d66 100644 --- a/equinix/resource_metal_project_api_key_acc_test.go +++ b/equinix/resource_metal_project_api_key_acc_test.go @@ -32,7 +32,7 @@ func TestAccMetalProjectAPIKey_basic(t *testing.T) { } func testAccMetalProjectAPIKeyConfig_basic() string { - return fmt.Sprintf(` + return ` resource "equinix_metal_project" "test" { name = "tfacc-project-key-test" @@ -42,7 +42,7 @@ resource "equinix_metal_project_api_key" "test" { project_id = equinix_metal_project.test.id description = "tfacc-project-key" read_only = true -}`) +}` } func testAccMetalProjectAPIKeyCheckDestroyed(s *terraform.State) error {