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,7 +506,6 @@ def instance(request, compute_id, vname):
error_messages.append(msg) error_messages.append(msg)
else: else:
for post in request.POST: 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) conn.clone_instance(clone_data)