Commit d43dde06 authored by Pascal Meunier's avatar Pascal Meunier

fix for int_params_path in default User_account

parent 70681936
......@@ -70,7 +70,11 @@ class User_account():
"""
def __init__(self, user, container_conf = {}):
self.user = user
self.home_prefix = ''
if 'EXT_PREFIX' in container_conf:
# The filesystem path on the execution host doesn't match the path inside the container
self.home_prefix = container_conf['EXT_PREFIX']
else:
self.home_prefix = ''
count = 0
while count < 10:
try:
......@@ -126,6 +130,10 @@ class User_account():
def params_path(self, session_id):
return self.int_session_dir(session_id) + "/parameters.hz"
def int_params_path(self, session_id):
"""internal path inside container"""
return self.int_session_dir(session_id) + "/parameters.hz"
def env(self, session_id, timeout, params):
e = [
......@@ -282,7 +290,7 @@ class User_account_anonymous(User_account):
return []
def group_pairs(self):
return {}
class User_account_JSON(User_account):
"""Modified to get account information from REST API returning JSON data
See https://gitlab.hubzero.org/onescienceplace/amoeba-groups
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment