1
0
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:
Ruben S. Montero 2013-03-07 01:23:49 +01:00
parent 3b2908413b
commit 7ef496a5a2

View File

@ -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;