mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-13 16:23:17 +09:00
Feature #1544: New xml-rpc method one.system.config
This commit is contained in:
1 parent
707321d3bc
commit
f487277f03
4 files changed
+45
No files matched your search
@@ -37,3 +37,22 @@ void SystemVersion::request_execute(xmlrpc_c::paramList const& paramList,
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
void SystemConfig::request_execute(xmlrpc_c::paramList const& paramList,
|
||||
RequestAttributes& att)
|
||||
{
|
||||
if ( att.gid != GroupPool::ONEADMIN_ID )
|
||||
{
|
||||
failure_response(AUTHORIZATION,
|
||||
"The oned configuration can only be retrieved by users in the oneadmin group",
|
||||
att);
|
||||
return;
|
||||
}
|
||||
|
||||
success_response(Nebula::instance().get_configuration_xml(), att);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
Reference in new issue
Block a user