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:
parent
5e8adec424
commit
19489cb08e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue