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

Feature #523: Fix bug, scheduler could not retrieve the VM pool via XML-RPC

This commit is contained in:
Carlos Martín 2011-04-04 15:00:09 +02:00
parent ff73aefc6f
commit 932bc2caf7
2 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,7 @@ void RequestManager::VirtualMachinePoolInfo::execute(
state = -1;
break;
case 3:
state = xmlrpc_c::value_int (paramList.getInt(3));
state = xmlrpc_c::value_int (paramList.getInt(2));
break;
default:
paramList.verifyEnd(3);

View File

@ -66,11 +66,10 @@ int VirtualMachinePoolXML::load_info(xmlrpc_c::value &result)
{
client->call(client->get_endpoint(), // serverUrl
"one.vmpool.info", // methodName
"sibi", // arguments format
"sii", // arguments format
&result, // resultP
client->get_oneauth().c_str(), // auth string
-2, // VM from all users
false, // not extended info
1); // in pending state
return 0;
}