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:
parent
f48cf0b8c5
commit
43efba9585
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user