Skip to content
Browse files
AIRAVATA-3420 Utility method to get the default storage id
Storage id is set on the ExperimentModel so provide a proper function to get it.
  • Loading branch information
machristie committed Aug 4, 2021
1 parent 9c3be01 commit 4e977dbb3d869fb7039c4b9d0dfcca7c539e0861
Showing 1 changed file with 5 additions and 0 deletions.
@@ -74,6 +74,11 @@ def get_user_storage_provider(request, owner_username=None, storage_resource_id=
return instance

def get_default_storage_resource_id(request):
backend = get_user_storage_provider(request)
return backend.storage_resource_id

def save(request, path, file, name=None, content_type=None, storage_resource_id=None, experiment_id=None):
Save file in path in the user's storage and return DataProduct. If

0 comments on commit 4e977db

Please sign in to comment.