From 5b82749d93cbbfea828f94680ce80a519f33bd20 Mon Sep 17 00:00:00 2001 From: Haroon-Dweikat-Ntx Date: Mon, 16 Dec 2024 11:00:21 +0200 Subject: [PATCH] lint fixes --- nutanix/services/prismv2/data_source_nutanix_pc_v2.go | 5 +++-- nutanix/services/prismv2/data_source_nutanix_pcs_v2.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nutanix/services/prismv2/data_source_nutanix_pc_v2.go b/nutanix/services/prismv2/data_source_nutanix_pc_v2.go index dea135c7..24c4616d 100644 --- a/nutanix/services/prismv2/data_source_nutanix_pc_v2.go +++ b/nutanix/services/prismv2/data_source_nutanix_pc_v2.go @@ -2,6 +2,7 @@ package prismv2 import ( "context" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" commonConfig "github.com/nutanix/ntnx-api-golang-clients/prism-go-client/v4/models/common/v1/config" @@ -52,8 +53,8 @@ func DatasourceNutanixFetchPcV2() *schema.Resource { func DatasourceNutanixPcV2Read(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { conn := meta.(*conns.Client).PrismAPI - pcExtId := d.Get("ext_id").(string) - resp, err := conn.DomainManagerAPIInstance.GetDomainManagerById(utils.StringPtr(pcExtId)) + pcExtID := d.Get("ext_id").(string) + resp, err := conn.DomainManagerAPIInstance.GetDomainManagerById(utils.StringPtr(pcExtID)) if err != nil { return diag.Errorf("error while fetching Domain Manager Configuration Detail: %s", err) diff --git a/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go b/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go index 576d41e2..0f48f1cf 100644 --- a/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go +++ b/nutanix/services/prismv2/data_source_nutanix_pcs_v2.go @@ -2,6 +2,7 @@ package prismv2 import ( "context" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/nutanix/ntnx-api-golang-clients/prism-go-client/v4/models/prism/v4/config" @@ -71,5 +72,4 @@ func flattenPcs(domainManagers []config.DomainManager) []map[string]interface{} pcs = append(pcs, pcMap) } return pcs - }