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 - }