airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] branch master updated: AIRAVATA-3232 Only move input files into experiment data dir when they exist
Date Tue, 22 Oct 2019 01:31:49 GMT
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 <machristie@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 []


Mime
View raw message