Skip to content

Commit

Permalink
lint fix for client name
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimutant committed Feb 29, 2024
1 parent 15059a7 commit d7633ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nutanix/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ type Client struct {
WaitTimeout int64
FoundationCentral *foundation_central.Client
Era *era.Client
NetworkingAPI *networking.NetworkingClient
NetworkingAPI *networking.Client
}
7 changes: 3 additions & 4 deletions nutanix/sdks/v4/networking/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import (
"github.com/terraform-providers/terraform-provider-nutanix/nutanix/client"
)

type NetworkingClient struct {
type Client struct {
SubnetAPIInstance *api.SubnetApi
VpcAPIInstance *api.VpcApi
FloatingIPAPIInstance *api.FloatingIpApi
}

//nolint:all
func NewNetworkingClient(credentials client.Credentials) (*NetworkingClient, error) {
func NewNetworkingClient(credentials client.Credentials) (*Client, error) {
var baseClient *network.ApiClient

// check if all required fields are present. Else create an empty client
Expand All @@ -29,7 +28,7 @@ func NewNetworkingClient(credentials client.Credentials) (*NetworkingClient, err
baseClient = pcClient
}

f := &NetworkingClient{
f := &Client{
SubnetAPIInstance: api.NewSubnetApi(baseClient),
VpcAPIInstance: api.NewVpcApi(baseClient),
FloatingIPAPIInstance: api.NewFloatingIpApi(baseClient),
Expand Down

0 comments on commit d7633ef

Please sign in to comment.