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 2021/08/23 15:42:31 UTC

[airavata-django-portal] branch develop updated: AIRAVATA-3420 Fix call to get_default_storage_resource_id

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1b06513  AIRAVATA-3420 Fix call to get_default_storage_resource_id
1b06513 is described below

commit 1b06513b2078b60ef25af5fcc29ccf5d1221154c
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Aug 23 11:42:17 2021 -0400

    AIRAVATA-3420 Fix call to get_default_storage_resource_id
---
 django_airavata/apps/api/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 629b9b3..d8ec2c8 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -224,7 +224,7 @@ class ExperimentViewSet(mixins.CreateModelMixin,
 
     def _set_storage_id_and_data_dir(self, experiment):
         # Storage ID
-        experiment.userConfigurationData.storageId = user_storage.get_default_storage_resource_id()
+        experiment.userConfigurationData.storageId = user_storage.get_default_storage_resource_id(self.request)
         # Create experiment dir and set it on model
         if not experiment.userConfigurationData.experimentDataDir:
             project = self.request.airavata_client.getProject(