Skip to content

Commit

Permalink
Fix use_temp_files, get it from the props if set if not defaults to T…
Browse files Browse the repository at this point in the history
…rue (old behavior)
  • Loading branch information
sanjaysrikakulam committed Sep 30, 2024
1 parent ecc9a21 commit 7a050cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/files/sources/webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _open_fs(self, user_context=None, opts: Optional[FilesSourceOptions] = None)
props = self._serialization_props(user_context)

# Check if 'use_temp_files' and 'temp_path' are set in the config, otherwise fallback
props["use_temp_files"] = getattr(config, 'webdav_use_temp_files', True)
props["use_temp_files"] = props.pop("use_temp_files", True)
temp_path = getattr(config, 'file_source_temp_dir', None)

if temp_path is None:
Expand Down

0 comments on commit 7a050cc

Please sign in to comment.