Skip to content

Commit

Permalink
fix params for container clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 11, 2015
1 parent 7d20703 commit 38d7859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipynbsrv/web/views/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def clone(request):
ct_id = int(request.POST.get('id'))
client = get_httpclient_instance(request)
container = client.containers(ct_id).get()
params['new_name'] = "{}_clone".format(container.name)
params['name'] = "{}_clone".format(container.name)

# create clone
try:
client.containers(ct_id).clone.post(params)
messages.success(request, "Sucessfully created the clone `{}`.".format(new_name))
messages.success(request, "Sucessfully created the clone `{}`.".format(name))
except Exception as e:
messages.error(request, api_error_message(e, params))

Expand Down

0 comments on commit 38d7859

Please sign in to comment.