Skip to content

Commit f9bb474

Browse files
committed
Allowing turning off loading custom dims if needed for device api
1 parent aa7c9a1 commit f9bb474

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/api/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const (
4242
MIN_TIME_BETWEEN_SYNTH_CHECKS = 60 * time.Second
4343
KT_API_LOAD_INTERFACES = "KT_API_LOAD_INTERFACES"
4444
KT_INTERFACE_LOOKUP_TEXT_FILTER = "KT_INTERFACE_LOOKUP_TEXT_FILTER"
45+
KT_NO_CUSTOM_COLUMNS = "KT_NO_CUSTOM_COLUMNS"
4546
)
4647

4748
var (
@@ -483,7 +484,7 @@ func (api *KentikApi) getDeviceInfoNew(ctx context.Context) error {
483484
ctxo := metadata.NewOutgoingContext(ctx, md)
484485

485486
lt := &devicepb.ListDevicesRequest{
486-
Query: &devicepb.DeviceQuery{NoCustomColumns: false},
487+
Query: &devicepb.DeviceQuery{NoCustomColumns: kt.LookupEnvBool(KT_NO_CUSTOM_COLUMNS, false)},
487488
}
488489
r, err := api.deviceClient.ListDevices(ctxo, lt)
489490
if err != nil {

0 commit comments

Comments
 (0)