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

Wrong one.vmpool.info RM error check for state parameter

This commit is contained in:
Carlos Martín 2011-07-07 12:46:09 +02:00
parent 03fac9096a
commit bba2daae70

View File

@ -129,7 +129,8 @@ void RequestManagerPoolInfoFilter::request_execute(
{
int state = xmlrpc_c::value_int(paramList.getInt(4));
if (( state < MINE ) || ( state > VirtualMachine::FAILED ))
if (( state < VirtualMachinePoolInfo::ALL_VM ) ||
( state > VirtualMachine::FAILED ))
{
failure_response(XML_RPC_API,
request_error("Incorrect filter_flag, state",""),