File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -570,6 +570,7 @@ def update_datasets(
570
570
check_data_directory : bool ,
571
571
update_all : bool ,
572
572
dry_run : bool ,
573
+ plain : bool ,
573
574
dataset_gateway : IDatasetGateway ,
574
575
) -> Tuple [List [DatasetViewModel ], List [DatasetFileViewModel ]]:
575
576
"""Update dataset files.
@@ -587,6 +588,7 @@ def update_datasets(
587
588
check_data_directory(bool): Whether to check the dataset's data directory for new files.
588
589
update_all(bool): Whether to update all datasets.
589
590
dry_run(bool): Whether to return a preview of what would be updated.
591
+ plain(bool): Whether plain output should be produced.
590
592
dataset_gateway(IDatasetGateway): Injected dataset gateway.
591
593
"""
592
594
from renku .core .dataset .providers .renku import RenkuProvider
@@ -680,7 +682,7 @@ def update_datasets(
680
682
)
681
683
682
684
if not records :
683
- if must_match_records :
685
+ if must_match_records and not plain :
684
686
raise errors .ParameterError ("No files matched the criteria." )
685
687
return imported_dataset_updates_view_models , []
686
688
Original file line number Diff line number Diff line change @@ -1128,6 +1128,7 @@ def update(
1128
1128
check_data_directory = check_data_directory ,
1129
1129
update_all = update_all ,
1130
1130
dry_run = dry_run ,
1131
+ plain = plain ,
1131
1132
)
1132
1133
)
1133
1134
You can’t perform that action at this time.
0 commit comments