feature #1691: Fix bug when setting up nic for attachment

This commit is contained in:
Ruben S. Montero committed 2013-03-07 01:23:49 +01:00
1 parent 3b2908413b
commit 7ef496a5a2
1 file changed
+1 -1
+1 -1
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;