1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

bug #2025: Generate full template for XML driver

(cherry picked from commit b79838f5498810c69e38c7a3fce29d7cb3189ae1)
This commit is contained in:
Ruben S. Montero 2013-05-14 22:53:01 +02:00
parent ec08be66c7
commit a2cebab649

View File

@ -26,16 +26,16 @@ int XMLDriver::deployment_description(
{
ofstream file;
string xml;
file.open(file_name.c_str(), ios::out);
if (file.fail() == true)
{
vm->log("VMM", Log::ERROR, "Could not open XML deployment file.");
return -1;
}
file << vm->template_to_xml(xml);
file << vm->to_xml(xml);
file.close();