From b9280bd9e9163a50830facd11ebae226b10c52d6 Mon Sep 17 00:00:00 2001 From: "abhishek.chaudhary" Date: Tue, 10 Dec 2024 09:24:59 +0530 Subject: [PATCH] gofmt --- nutanix/client/client_test.go | 2 -- nutanix/config.go | 1 - .../data_source_nutanix_network_security_policies_v2_test.go | 1 - .../data_source_nutanix_network_security_policy_v2_test.go | 1 - .../data_source_nutanix_volume_group_iscsi_clients_v2_test.go | 1 - .../volumesv2/data_source_nutanix_volume_group_v2_test.go | 1 - 6 files changed, 7 deletions(-) diff --git a/nutanix/client/client_test.go b/nutanix/client/client_test.go index cdaa63252..08201d2f6 100644 --- a/nutanix/client/client_test.go +++ b/nutanix/client/client_test.go @@ -115,7 +115,6 @@ func TestNewUploadRequest(t *testing.T) { t.Errorf("NewUploadRequest(%v) URL = %v, expected %v", inURL, req.URL, outURL) } - got, _ := ioutil.ReadAll(req.Body) if !bytes.Equal(got, outBody) { t.Errorf("NewUploadRequest(%v) Body = %v, expected %v", inBody, string(got), string(outBody)) @@ -238,7 +237,6 @@ func TestNewUnAuthUploadRequest(t *testing.T) { t.Errorf("NewUnAuthUploadRequest(%v) URL = %v, expected %v", inURL, req.URL, outURL) } - got, _ := ioutil.ReadAll(req.Body) if !bytes.Equal(got, outBody) { t.Errorf("NewUnAuthUploadRequest(%v) Body = %v, expected %v", inBody, string(got), string(outBody)) diff --git a/nutanix/config.go b/nutanix/config.go index 44820609c..03e5eb49a 100644 --- a/nutanix/config.go +++ b/nutanix/config.go @@ -3,7 +3,6 @@ package nutanix import ( "fmt" - "github.com/terraform-providers/terraform-provider-nutanix/nutanix/client" era "github.com/terraform-providers/terraform-provider-nutanix/nutanix/sdks/v3/era" foundation_central "github.com/terraform-providers/terraform-provider-nutanix/nutanix/sdks/v3/fc" diff --git a/nutanix/services/networkingv2/data_source_nutanix_network_security_policies_v2_test.go b/nutanix/services/networkingv2/data_source_nutanix_network_security_policies_v2_test.go index 949a23cb3..cdc499521 100644 --- a/nutanix/services/networkingv2/data_source_nutanix_network_security_policies_v2_test.go +++ b/nutanix/services/networkingv2/data_source_nutanix_network_security_policies_v2_test.go @@ -4,7 +4,6 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" acc "github.com/terraform-providers/terraform-provider-nutanix/nutanix/acctest" diff --git a/nutanix/services/networkingv2/data_source_nutanix_network_security_policy_v2_test.go b/nutanix/services/networkingv2/data_source_nutanix_network_security_policy_v2_test.go index 3d77bcb1e..c899865b2 100644 --- a/nutanix/services/networkingv2/data_source_nutanix_network_security_policy_v2_test.go +++ b/nutanix/services/networkingv2/data_source_nutanix_network_security_policy_v2_test.go @@ -4,7 +4,6 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" acc "github.com/terraform-providers/terraform-provider-nutanix/nutanix/acctest" diff --git a/nutanix/services/volumesv2/data_source_nutanix_volume_group_iscsi_clients_v2_test.go b/nutanix/services/volumesv2/data_source_nutanix_volume_group_iscsi_clients_v2_test.go index b0d46fb4b..9d347a065 100644 --- a/nutanix/services/volumesv2/data_source_nutanix_volume_group_iscsi_clients_v2_test.go +++ b/nutanix/services/volumesv2/data_source_nutanix_volume_group_iscsi_clients_v2_test.go @@ -4,7 +4,6 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" acc "github.com/terraform-providers/terraform-provider-nutanix/nutanix/acctest" diff --git a/nutanix/services/volumesv2/data_source_nutanix_volume_group_v2_test.go b/nutanix/services/volumesv2/data_source_nutanix_volume_group_v2_test.go index 8c2c6f358..5167a6293 100644 --- a/nutanix/services/volumesv2/data_source_nutanix_volume_group_v2_test.go +++ b/nutanix/services/volumesv2/data_source_nutanix_volume_group_v2_test.go @@ -4,7 +4,6 @@ import ( "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" acc "github.com/terraform-providers/terraform-provider-nutanix/nutanix/acctest"