mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 03:54:15 +00:00
instance/clone view: generation of clone_data algorithm enhanced
if disk or meta in post: results always true, so removed. this pushes all POST data to conn.clone_instance()
This commit is contained in:
parent
679f84f117
commit
6c4a3a93e3
1 changed files with 1 additions and 2 deletions
|
@ -506,8 +506,7 @@ def instance(request, compute_id, vname):
|
|||
error_messages.append(msg)
|
||||
else:
|
||||
for post in request.POST:
|
||||
if 'disk' or 'meta' in post:
|
||||
clone_data[post] = request.POST.get(post, '')
|
||||
clone_data[post] = request.POST.get(post, '')
|
||||
|
||||
conn.clone_instance(clone_data)
|
||||
msg = _("Clone")
|
||||
|
|
Loading…
Reference in a new issue