Permalink
Browse files

spawer to pos argument

  • Loading branch information...
1 parent f842a3d commit d7f377a0a16d6e6ef3a4c17a8f92526eeb40a7a8 @vchagaev vchagaev committed May 19, 2017
Showing with 2 additions and 3 deletions.
  1. +2 −3 everware/home_handler.py
View
@@ -32,8 +32,7 @@ def is_repository_changed(user):
return False
@gen.coroutine
-def commit_container(request, user, log):
- spawner = user.spawner
+def commit_container(request, spawner, log):
image_tag = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
image_name = 'everware_image/' + spawner.escaped_name + '/' + spawner.escaped_repo_url + '_' + spawner.container_id
host_with_protocol = request.protocol + '://' + request.host
@@ -90,7 +89,7 @@ def get(self):
repo_url = user.spawner.repo_url
if user.running and do_commit_container:
- output_data = yield commit_container(self.request, user, self.log)
+ output_data = yield commit_container(self.request, user.spawner, self.log)
self.redirect(url_concat('/hub/home', output_data))
if user.running and getattr(user, 'login_service', '') == 'github':

0 comments on commit d7f377a

Please sign in to comment.