Commit ca09172f authored by Daniele Venzano's avatar Daniele Venzano

Fix typo and user message

parent 1f60ca94
......@@ -97,7 +97,7 @@ class ExecutionTerminateWeb(ZoeWebRequestHandler):
return
try:
self.api_endpoint.execution_terminate(self.current_user, execution_id, 'user {} request from web interface'.format(self.current_user))
self.api_endpoint.execution_terminate(self.current_user, execution_id, 'user {} request from web interface'.format(self.current_user.username))
except zoe_api.exceptions.ZoeException as e:
self.set_status(e.status_code, e.message)
return
......
......@@ -99,7 +99,7 @@ class DockerClient:
for volume in service_instance.volumes:
if volume.type == "host_directory":
assert isinstance(volume, VolumeDescriptionHostPath)
run_args['volumes'][volume.path] = {'bi nd': volume.mount_point, 'mode': ("ro" if volume.readonly else "rw")}
run_args['volumes'][volume.path] = {'bind': volume.mount_point, 'mode': ("ro" if volume.readonly else "rw")}
else:
log.error('Docker backend does not support volume type {}'.format(volume.type))
......
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