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(
570570 check_data_directory : bool ,
571571 update_all : bool ,
572572 dry_run : bool ,
573+ plain : bool ,
573574 dataset_gateway : IDatasetGateway ,
574575) -> Tuple [List [DatasetViewModel ], List [DatasetFileViewModel ]]:
575576 """Update dataset files.
@@ -587,6 +588,7 @@ def update_datasets(
587588 check_data_directory(bool): Whether to check the dataset's data directory for new files.
588589 update_all(bool): Whether to update all datasets.
589590 dry_run(bool): Whether to return a preview of what would be updated.
591+ plain(bool): Whether plain output should be produced.
590592 dataset_gateway(IDatasetGateway): Injected dataset gateway.
591593 """
592594 from renku .core .dataset .providers .renku import RenkuProvider
@@ -680,7 +682,7 @@ def update_datasets(
680682 )
681683
682684 if not records :
683- if must_match_records :
685+ if must_match_records and not plain :
684686 raise errors .ParameterError ("No files matched the criteria." )
685687 return imported_dataset_updates_view_models , []
686688
Original file line number Diff line number Diff line change @@ -1128,6 +1128,7 @@ def update(
11281128 check_data_directory = check_data_directory ,
11291129 update_all = update_all ,
11301130 dry_run = dry_run ,
1131+ plain = plain ,
11311132 )
11321133 )
11331134
You can’t perform that action at this time.
0 commit comments