1
0
Fork 0
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:
Jan Krcmar 2016-02-24 12:50:43 +01:00
parent 679f84f117
commit 6c4a3a93e3

View file

@ -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")