Skip to content

Commit

Permalink
ci: Go fmt & go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Sep 9, 2022
1 parent 12a69ef commit f1079fd
Show file tree
Hide file tree
Showing 89 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion netbox/data_netbox_dcim_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func dataNetboxDcimPlatformRead(ctx context.Context, d *schema.ResourceData, m i
}

if *list.Payload.Count < 1 {
return diag.Errorf("Your query returned no results. " +
return diag.Errorf("Your query returned no results. " +
"Please change your search criteria and try again.")
} else if *list.Payload.Count > 1 {
return diag.Errorf("Your query returned more than one result. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONCircuitsCircuitTerminationsListRead(ctx context.Context, d *s
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Circuits.CircuitsCircuitTerminationsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_circuits_circuit_types_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONCircuitsCircuitTypesListRead(ctx context.Context, d *schema.R
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Circuits.CircuitsCircuitTypesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_circuits_circuits_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONCircuitsCircuitsListRead(ctx context.Context, d *schema.Resou
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Circuits.CircuitsCircuitsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_circuits_provider_networks_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONCircuitsProviderNetworksListRead(ctx context.Context, d *sche
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Circuits.CircuitsProviderNetworksList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_circuits_providers_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONCircuitsProvidersListRead(ctx context.Context, d *schema.Reso
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Circuits.CircuitsProvidersList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_cables_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimCablesListRead(ctx context.Context, d *schema.ResourceDat
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimCablesList(params, nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimConsolePortTemplatesListRead(ctx context.Context, d *sche
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimConsolePortTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_console_ports_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimConsolePortsListRead(ctx context.Context, d *schema.Resou
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimConsolePortsList(params, nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimConsoleServerPortTemplatesListRead(ctx context.Context, d
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimConsoleServerPortTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_console_server_ports_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimConsoleServerPortsListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimConsoleServerPortsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_device_bay_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimDeviceBayTemplatesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimDeviceBayTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_device_bays_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimDeviceBaysListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimDeviceBaysList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_device_roles_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimDeviceRolesListRead(ctx context.Context, d *schema.Resour
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimDeviceRolesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_device_types_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimDeviceTypesListRead(ctx context.Context, d *schema.Resour
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimDeviceTypesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_devices_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimDevicesListRead(ctx context.Context, d *schema.ResourceDa
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimDevicesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_front_port_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimFrontPortTemplatesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimFrontPortTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_front_ports_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimFrontPortsListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimFrontPortsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_interface_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimInterfaceTemplatesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimInterfaceTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_interfaces_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimInterfacesListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimInterfacesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_inventory_item_roles_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimInventoryItemRolesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimInventoryItemRolesList(params, nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimInventoryItemTemplatesListRead(ctx context.Context, d *sc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimInventoryItemTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_inventory_items_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimInventoryItemsListRead(ctx context.Context, d *schema.Res
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimInventoryItemsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_locations_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimLocationsListRead(ctx context.Context, d *schema.Resource
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimLocationsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_manufacturers_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimManufacturersListRead(ctx context.Context, d *schema.Reso
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimManufacturersList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_module_bay_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimModuleBayTemplatesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimModuleBayTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_module_bays_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimModuleBaysListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimModuleBaysList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_module_types_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimModuleTypesListRead(ctx context.Context, d *schema.Resour
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimModuleTypesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_modules_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimModulesListRead(ctx context.Context, d *schema.ResourceDa
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimModulesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_platforms_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPlatformsListRead(ctx context.Context, d *schema.Resource
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPlatformsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_power_feeds_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerFeedsListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerFeedsList(params, nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerOutletTemplatesListRead(ctx context.Context, d *sche
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerOutletTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_power_outlets_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerOutletsListRead(ctx context.Context, d *schema.Resou
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerOutletsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_power_panels_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerPanelsListRead(ctx context.Context, d *schema.Resour
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerPanelsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_power_port_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerPortTemplatesListRead(ctx context.Context, d *schema
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerPortTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_power_ports_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimPowerPortsListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimPowerPortsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_rack_reservations_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRackReservationsListRead(ctx context.Context, d *schema.R
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRackReservationsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_rack_roles_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRackRolesListRead(ctx context.Context, d *schema.Resource
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRackRolesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_racks_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRacksListRead(ctx context.Context, d *schema.ResourceData
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRacksList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_rear_port_templates_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRearPortTemplatesListRead(ctx context.Context, d *schema.
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRearPortTemplatesList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_rear_ports_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRearPortsListRead(ctx context.Context, d *schema.Resource
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRearPortsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_regions_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimRegionsListRead(ctx context.Context, d *schema.ResourceDa
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimRegionsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_site_groups_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimSiteGroupsListRead(ctx context.Context, d *schema.Resourc
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimSiteGroupsList(params, nil)
Expand Down
2 changes: 1 addition & 1 deletion netbox/data_netbox_json_dcim_sites_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func dataNetboxJSONDcimSitesListRead(ctx context.Context, d *schema.ResourceData
params.Offset = &offset
for int64(len(tmp)) < desiredLength {
offset = int64(len(tmp))
if limit > desiredLength - offset {
if limit > desiredLength-offset {
limit = desiredLength - offset
}
list, err = client.Dcim.DcimSitesList(params, nil)
Expand Down
Loading

0 comments on commit f1079fd

Please sign in to comment.