Skip to content
Permalink
Browse files
AIRAVATA-3420 Check if 'path' in create directory response
  • Loading branch information
machristie committed Jun 22, 2021
1 parent 3ac051a commit 45bfff18c6795eccad63edb7724ddda9e4c3a204
Showing 1 changed file with 4 additions and 1 deletion.
@@ -637,7 +637,10 @@ def create_user_dir(request, path="", dir_names=(), create_unique=False, storage
"/user-storage/~/{path}",
path_params={"path": path},
method="post")
path = resp.json()['path']
json = resp.json()
# 'path' is a new response attribute, for backwards compatibility check if it exists first
if 'path' in json:
path = json['path']
# FIXME: should use the storage_resource_id returned from remote API call
return storage_resource_id, path
backend = get_user_storage_provider(request, storage_resource_id=storage_resource_id)

0 comments on commit 45bfff1

Please sign in to comment.