Skip to content

Commit

Permalink
Merge pull request #1132 from vmware/linter-fixes
Browse files Browse the repository at this point in the history
Fix linter errors
  • Loading branch information
annakhm authored Feb 26, 2024
2 parents 19f1d65 + 263e5ec commit c17bde2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 22 deletions.
4 changes: 2 additions & 2 deletions nsxt/lb_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func resourceNsxtPolicyLBAppProfileExists(id string, connector client.Connector,
if isNotFoundError(err) {
return false, nil
}
msg := fmt.Sprintf("Error retrieving resource LBAppProfile")
msg := "Error retrieving resource LBAppProfile"
return false, logAPIError(msg, err)
}

Expand Down Expand Up @@ -281,7 +281,7 @@ func resourceNsxtPolicyLBMonitorProfileExistsWrapper(id string, connector client
if isNotFoundError(err) {
return false, nil
}
msg := fmt.Sprintf("Error retrieving resource LBMonitorProfile")
msg := "Error retrieving resource LBMonitorProfile"
return false, logAPIError(msg, err)
}

Expand Down
9 changes: 0 additions & 9 deletions nsxt/policy_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ func getNsxIDSchema() *schema.Schema {
}
}

func getNestedNsxIDSchema() *schema.Schema {
return &schema.Schema{
Type: schema.TypeString,
Description: "NSX ID for this resource",
Optional: true,
ForceNew: true,
}
}

func getFlexNsxIDSchema(readOnly bool) *schema.Schema {
return &schema.Schema{
Type: schema.TypeString,
Expand Down
4 changes: 0 additions & 4 deletions nsxt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,10 +1067,6 @@ func getPolicyConnector(clients interface{}) client.Connector {
return getPolicyConnectorWithHeaders(clients, nil, false, true)
}

func getPolicyConnectorWithoutRetry(clients interface{}) client.Connector {
return getPolicyConnectorWithHeaders(clients, nil, false, false)
}

// Standalone policy connector, possibly for different endpoint,
// for the purpose of special tasks (such as joining manager cluster node)
// Does not initialize global connection settings
Expand Down
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_upgrade_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func runUpgrade(upgradeClientSet *upgradeClientSet, partialUpgradeMap map[string
if err != nil {
return err
}
log.Printf(completeLog)
log.Print(completeLog)
}
return nil
}
Expand Down
6 changes: 0 additions & 6 deletions nsxt/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ func getTestAnotherSiteName() string {
return os.Getenv("NSXT_TEST_ANOTHER_SITE_NAME")
}

func getTestAdvancedTopology() string {
// Non-basic testing topology available
// For now this is used by tests that have minimum 2 edge nodes per cluster
return os.Getenv("NSXT_TEST_ADVANCED_TOPOLOGY")
}

func getTestCertificateName(isClient bool) string {
if isClient {
return os.Getenv("NSXT_TEST_CLIENT_CERTIFICATE_NAME")
Expand Down

0 comments on commit c17bde2

Please sign in to comment.