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

Feature #523: Fix bug in one.cluster.info, XML returned was empty

This commit is contained in:
Carlos Martín 2011-04-04 15:28:36 +02:00
parent 932bc2caf7
commit 65ee2e30be

View File

@ -27,7 +27,6 @@ void RequestManager::ClusterInfo::execute(
xmlrpc_c::value * const retval)
{
string session;
string info;
Cluster * cluster;
ostringstream oss;
@ -70,7 +69,7 @@ void RequestManager::ClusterInfo::execute(
// All nice, return the cluster info to the client
arrayData.push_back(xmlrpc_c::value_boolean(true)); // SUCCESS
arrayData.push_back(xmlrpc_c::value_string(info));
arrayData.push_back(xmlrpc_c::value_string(oss.str()));
// Copy arrayresult into retval mem space
arrayresult = new xmlrpc_c::value_array(arrayData);