fixed tab error.

This commit is contained in:
Michael Pilosov 2019-02-19 23:53:18 +00:00
parent 916eb2d21d
commit c46bb606e1

View File

@ -41,15 +41,13 @@ class MyDockerSpawner(DockerSpawner):
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' }