mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
M #-: Fix vnet name check on create (#3323)
This commit is contained in:
parent
0e7457bfae
commit
983c154d7a
@ -128,7 +128,7 @@ int VirtualNetworkPool::allocate (
|
||||
vn = new VirtualNetwork(uid, gid, uname, gname, umask, pvid,
|
||||
cluster_ids, vn_template);
|
||||
|
||||
|
||||
vn_template->get("NAME", name);
|
||||
|
||||
// Check for duplicates
|
||||
db_oid = exist(name, uid);
|
||||
@ -169,7 +169,7 @@ int VirtualNetworkPool::allocate (
|
||||
error_duplicated:
|
||||
oss << "NAME is already taken by NET " << db_oid << ".";
|
||||
error_str = oss.str();
|
||||
|
||||
|
||||
delete vn;
|
||||
|
||||
error_common:
|
||||
|
Loading…
x
Reference in New Issue
Block a user