You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/10/22 01:31:49 UTC
[airavata-django-portal] branch master updated: AIRAVATA-3232 Only
move input files into experiment data dir when they exist
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/master by this push:
new 25ca863 AIRAVATA-3232 Only move input files into experiment data dir when they exist
25ca863 is described below
commit 25ca8633b32d3f064b27852007ab17a50f3d97aa
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Oct 21 21:30:45 2019 -0400
AIRAVATA-3232 Only move input files into experiment data dir when they exist
---
django_airavata/apps/api/views.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 656f620..0c4d731 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -221,8 +221,10 @@ class ExperimentViewSet(APIBackedViewSet):
exp_data_dir = experiment.userConfigurationData.experimentDataDir
for experiment_input in experiment.experimentInputs:
if experiment_input.type == DataType.URI:
- experiment_input.value = self._move_if_tmp_input_file_upload(
- experiment_input.value, exp_data_dir)
+ if experiment_input.value:
+ experiment_input.value = \
+ self._move_if_tmp_input_file_upload(
+ experiment_input.value, exp_data_dir)
elif experiment_input.type == DataType.URI_COLLECTION:
data_product_uris = experiment_input.value.split(
",") if experiment_input.value else []