mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
add warning for dublicate instance name on other host
This commit is contained in:
@@ -99,6 +99,8 @@ def create_instance(request, compute_id):
|
||||
if data['name'] in instances:
|
||||
msg = _("A virtual machine with this name already exists")
|
||||
error_messages.append(msg)
|
||||
if Instance.objects.filter(name__exact=data['name']):
|
||||
messages.warning(request,_("There is an instance with same name. Are you sure?"))
|
||||
if not error_messages:
|
||||
if data['hdd_size']:
|
||||
if not data['mac']:
|
||||
|
||||
Reference in New Issue
Block a user