diff --git a/jupyterhub_config.py b/jupyterhub_config.py index 059c4b76..1470f4bf 100755 --- a/jupyterhub_config.py +++ b/jupyterhub_config.py @@ -41,15 +41,13 @@ def start(self): for group_id in group_list: # admins in userlist get to write files. if group_id != 'admin': if 'admin' in group_list: - self.volumes['shared-{}'.format(group_id)] = { - 'bind': '/home/jovyan/%s'%(group_id), - 'mode': 'rw', # or ro for read-only - } + self.volumes['shared-{}'.format(group_id)] = \ + { 'bind': '/home/jovyan/%s'%(group_id), + 'mode': 'rw' } # or ro for read-only else: # this "shared-" is part of the naming convention - self.volumes['shared-{}'.format(group_id)] = { - 'bind': '/home/jovyan/%s'%(group_id), - 'mode': 'ro', - } + self.volumes['shared-{}'.format(group_id)] = \ + {'bind': '/home/jovyan/%s'%(group_id), + 'mode': 'ro' } # or rw for write (can cause conflicts) else: # if admin is one of the groups in userlist, mount the following: self.volumes['%s/userlist'%(os.environ['HUB_LOC'])] = \ { 'bind': '/home/jovyan/userlist', 'mode': 'rw' }