mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-07 12:54:36 +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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user