mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #1691: Fix bug when setting up nic for attachment
This commit is contained in:
parent
3b2908413b
commit
7ef496a5a2
@ -1924,7 +1924,7 @@ VectorAttribute * VirtualMachine::set_up_attach_nic(
|
||||
|
||||
int rc = vnpool->nic_attribute(new_nic, max_nic_id+1, uid, vm_id, error_str);
|
||||
|
||||
if ( rc != -1 ) //-2 is not using a pre-defined network
|
||||
if ( rc == -1 ) //-2 is not using a pre-defined network
|
||||
{
|
||||
delete new_nic;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user