mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-26 09:57:23 +03:00
feature #3471: Code formatting
This commit is contained in:
parent
1f73e7c61d
commit
0e4f456f70
@ -41,8 +41,9 @@ public:
|
||||
* Writes the ResourceSet in XML form the the given stream, in the form:
|
||||
* <RESOURCE>
|
||||
* <ZONE_ID>
|
||||
* <RESOURC_ID>
|
||||
* <RESOURCE_ID>
|
||||
* </RESOURCE>
|
||||
* RESOURCE is set from xml_name attribute.
|
||||
* @param oss the outpur string stream
|
||||
*/
|
||||
void to_xml(ostringstream &oss) const;
|
||||
|
@ -111,7 +111,6 @@ class OneVdcHelper < OpenNebulaHelper::OneHelper
|
||||
groups = vdc_hash['VDC']['GROUPS']['ID']
|
||||
if(groups != nil)
|
||||
puts
|
||||
#CLIHelper.print_header(str_h1 % "GROUPS", false)
|
||||
|
||||
CLIHelper::ShowTable.new(nil, self) do
|
||||
column :"GROUPS", "", :right, :size=>7 do |d|
|
||||
|
@ -462,14 +462,13 @@ int ResourceSet::from_xml_node(vector<xmlNodePtr>& content)
|
||||
|
||||
int zone_id, id;
|
||||
|
||||
string zone_path = "/" + xml_name + "/ZONE_ID";
|
||||
string zone_path = "/" + xml_name + "/ZONE_ID";
|
||||
string resource_path = "/" + xml_name + "/" + xml_name + "_ID";
|
||||
|
||||
for (it = content.begin(); it != content.end(); it++)
|
||||
{
|
||||
ObjectXML tmp_xml(*it);
|
||||
|
||||
|
||||
rc += tmp_xml.xpath(zone_id, zone_path.c_str(), -1);
|
||||
rc += tmp_xml.xpath(id, resource_path.c_str(), -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user