From 7d0020203478606c00424c3b8b7637b164878483 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:46:57 +0200 Subject: [PATCH] Fix export_remote include metadata flag We were passing 'false' to --export-metadata-files, but it was considered True (non-zero length string), and the metadata was always included in the export. Co-authored-by: Marius van den Beek --- tools/data_export/export_remote.py | 2 +- tools/data_export/export_remote.xml | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/data_export/export_remote.py b/tools/data_export/export_remote.py index 0ebbbda157f8..6574756a85f9 100644 --- a/tools/data_export/export_remote.py +++ b/tools/data_export/export_remote.py @@ -71,7 +71,7 @@ def _parser(): parser.add_argument("--directory-uri", type=str, help="directory target URI") parser.add_argument("--file-sources", type=str, help="file sources json") parser.add_argument("--files-to-export", type=str, help="files to export") - parser.add_argument("--export-metadata-files", type=bool, help="export metadata files", default=True) + parser.add_argument("--export-metadata-files", type=bool, help="export metadata files", default=False) return parser diff --git a/tools/data_export/export_remote.xml b/tools/data_export/export_remote.xml index ef5450cc55d9..fe544c48e200 100644 --- a/tools/data_export/export_remote.xml +++ b/tools/data_export/export_remote.xml @@ -10,11 +10,13 @@ python '$__tool_directory__/export_remote.py' --file-sources '$file_sources' --directory-uri '$d_uri' --files-to-export '$files_to_export' - --export-metadata-files $include_metadata_files + #if $include_metadata_files: + --export-metadata-files $include_metadata_files + #end if > '$out' ]]> - + #import json #from galaxy.util import filesystem_safe_string #if $export_type.export_type_selector == "datasets_auto": @@ -48,17 +50,17 @@ $fileconfig - + - + - - + +