1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

bug: Fix return code checks in RM

This commit is contained in:
Carlos Martin and Ruben S. Montero 2010-04-28 18:50:27 +02:00 committed by Ruben S. Montero
parent f48cf0b8c5
commit 43efba9585
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ void RequestManager::HostAllocate::execute(
im_mad_name,
vmm_mad_name,
tm_mad_name);
if ( rc != 0 )
if ( rc == -1 )
{
goto error_host_allocate;
}

View File

@ -67,7 +67,7 @@ void RequestManager::UserAllocate::execute(
// Now let's add the user
rc = UserAllocate::upool->allocate(&uid,username,password,true);
if ( rc != 0 )
if ( rc == -1 )
{
goto error_allocate;
}