Commit ca09172f authored by Daniele Venzano's avatar Daniele Venzano

Fix typo and user message

parent 1f60ca94
...@@ -97,7 +97,7 @@ class ExecutionTerminateWeb(ZoeWebRequestHandler): ...@@ -97,7 +97,7 @@ class ExecutionTerminateWeb(ZoeWebRequestHandler):
return return
try: 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: except zoe_api.exceptions.ZoeException as e:
self.set_status(e.status_code, e.message) self.set_status(e.status_code, e.message)
return return
......
...@@ -99,7 +99,7 @@ class DockerClient: ...@@ -99,7 +99,7 @@ class DockerClient:
for volume in service_instance.volumes: for volume in service_instance.volumes:
if volume.type == "host_directory": if volume.type == "host_directory":
assert isinstance(volume, VolumeDescriptionHostPath) 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: else:
log.error('Docker backend does not support volume type {}'.format(volume.type)) 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