Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 16, 2024
1 parent 33edd71 commit 5b82749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nutanix/services/prismv2/data_source_nutanix_pc_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nutanix/services/prismv2/data_source_nutanix_pcs_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -71,5 +72,4 @@ func flattenPcs(domainManagers []config.DomainManager) []map[string]interface{}
pcs = append(pcs, pcMap)
}
return pcs

}

0 comments on commit 5b82749

Please sign in to comment.