1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-26 09:57:23 +03:00

feature #687: Scheduler uses the new filter function

This commit is contained in:
Ruben S. Montero 2011-07-02 19:11:22 +02:00
parent 5609e3e424
commit ff7e79207f
2 changed files with 10 additions and 8 deletions

View File

@ -67,7 +67,7 @@ public:
VirtualMachinePoolInfo():
RequestManagerPoolInfoFilter("VirtualMachinePoolInfo",
"Returns the virtual machine instances pool",
"A:siii")
"A:siiii")
{
Nebula& nd = Nebula::instance();
pool = nd.get_vmpool();

View File

@ -64,13 +64,15 @@ int VirtualMachinePoolXML::load_info(xmlrpc_c::value &result)
{
try
{
client->call(client->get_endpoint(), // serverUrl
"one.vmpool.info", // methodName
"sii", // arguments format
&result, // resultP
client->get_oneauth().c_str(), // auth string
-2, // VM from all users
1); // in pending state
client->call(client->get_endpoint(), // serverUrl
"one.vmpool.info", // methodName
"siiii", // arguments format
&result, // resultP
client->get_oneauth().c_str(), // auth string
-2, // VM from all users
-1, // start_id (none)
-1, // end_id (none)
1); // in pending state
return 0;
}
catch (exception const& e)