1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

fix 4404d59: clone instance cannot set new vname

This commit is contained in:
Ing. Jan KRCMAR 2018-06-22 10:55:24 +02:00
parent 5e8adec424
commit 19489cb08e

View file

@ -706,7 +706,7 @@ def instance(request, compute_id, vname):
for post in request.POST: for post in request.POST:
clone_data[post] = request.POST.get(post, '').strip() 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] auto_vname = clone_free_names[0]
clone_data['name'] = auto_vname clone_data['name'] = auto_vname
clone_data['clone-net-mac-0'] = _get_dhcp_mac_address(auto_vname) clone_data['clone-net-mac-0'] = _get_dhcp_mac_address(auto_vname)