Skip to content

Commit 020434a

Browse files
authored
fix(cli): adapt to changes in KG api for importing datasets (#3549)
1 parent d162392 commit 020434a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

renku/core/dataset/providers/renku.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def _fetch_dataset_info(self, uri):
122122
identifier = None
123123
dataset_info = None
124124
else:
125-
dataset_name = dataset_info.get("name")
125+
# name was renamed to slug, name kept for backwards compatibility
126+
dataset_name = dataset_info.get("slug", dataset_info.get("name"))
126127
identifier = dataset_info["identifier"]
127128

128129
if project_id:

0 commit comments

Comments
 (0)