Skip to content

Commit 5b3dcd7

Browse files
authored
[CDF-27585] 🐛Value error interactive mode migrate assets/events/files/timeseries. (#2801)
# Description Please describe the change you have made. ## Bump - [x] Patch - [ ] Skip ## Changelog ### Fixed - [alpha] When running `cdf migrate assets/events/files/timeserise` in interactive mode, Toolkit will no longer fail with `ValueError: Limit must be between 1 and 1000, got -1.`.
1 parent 9c96c79 commit 5b3dcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cognite_toolkit/_cdf_tk/commands/dump_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def __init__(self, client: ToolkitClient, identifier: tuple[str, ...] | None = N
860860
self.resource_view_mappings: list[ResourceViewMappingResponse] | None = None
861861

862862
def _interactive_select(self) -> tuple[str, ...]:
863-
mappings = self.client.migration.resource_view_mapping.list(limit=-1)
863+
mappings = self.client.migration.resource_view_mapping.list(limit=None)
864864
if not mappings:
865865
raise ToolkitMissingResourceError("No resource view mappings found")
866866
self.resource_view_mappings = list(mappings)

0 commit comments

Comments
 (0)