Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Feb 19, 2025
1 parent 90b5f00 commit a4e1341
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nutanix/services/lcmv2/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

type TestConfig struct {
Lcm struct {
EntityModel string `json:"entity_model"`
EntityModel string `json:"entity_model"`
EntityModelVersion string `json:"entity_model_version"`
} `json:"lcm"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ResourceNutanixLcmPerformInventoryV2() *schema.Resource {
func ResourceNutanixLcmPerformInventoryV2Create(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
conn := meta.(*conns.Client).LcmAPI
clusterId := d.Get("x_cluster_id").(string)

Check failure on line 40 in nutanix/services/lcmv2/resource_nutanix_lcm_inventory_v2.go

View workflow job for this annotation

GitHub Actions / tests

var `clusterId` should be `clusterID` (golint)

resp, err := conn.LcmInventoryAPIInstance.PerformInventory(utils.StringPtr(clusterId))
if err != nil {
return diag.Errorf("error while performing the inventory: %v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func TestAccV2NutanixLcmPerformInventory_Basic(t *testing.T) {
resource.TestCheckResourceAttrSet(datasourceNameLcmEntityBeforeUpgrade, "entity_version"),
// perform inventory checks
resource.TestCheckResourceAttrSet(resourceNameLcmPerformInventory, "x_cluster_id"),

),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestAccV2NutanixLcmPrechecks_Basic(t *testing.T) {
resource.TestCheckResourceAttr(resourceNameLcmPreChecks, "entity_update_specs.#", "1"),
resource.TestCheckResourceAttrPair(resourceNameLcmPreChecks, "entity_update_specs.0.entity_uuid", datasourceNameLcmEntityBeforeUpgrade, "ext_id"),
resource.TestCheckResourceAttr(resourceNameLcmPreChecks, "entity_update_specs.0.to_version", testVars.Lcm.EntityModelVersion),

),
},
},
Expand Down

0 comments on commit a4e1341

Please sign in to comment.