From 19489cb08eeec1f2fcc9eddacf7df03eaa6ba174 Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Fri, 22 Jun 2018 10:55:24 +0200 Subject: [PATCH] fix 4404d59: clone instance cannot set new vname --- instances/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instances/views.py b/instances/views.py index 2e8fb35..fbec724 100644 --- a/instances/views.py +++ b/instances/views.py @@ -706,7 +706,7 @@ def instance(request, compute_id, vname): for post in request.POST: clone_data[post] = request.POST.get(post, '').strip() - if clone_instance_auto_name: + if clone_instance_auto_name and not clone_data['name']: auto_vname = clone_free_names[0] clone_data['name'] = auto_vname clone_data['clone-net-mac-0'] = _get_dhcp_mac_address(auto_vname)