mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature #4358: Do not include the element in base64 as it hits the max
element size limit by libvirt
This commit is contained in:
parent
9fb06c870d
commit
10444b4023
@ -210,7 +210,6 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
string data = "";
|
||||
|
||||
string vm_xml;
|
||||
string* vm64;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@ -1151,18 +1150,12 @@ int LibVirtDriver::deployment_description_kvm(
|
||||
// ------------------------------------------------------------------------
|
||||
// Metadata used by drivers
|
||||
// ------------------------------------------------------------------------
|
||||
vm64 = one_util::base64_encode(vm->to_xml(vm_xml));
|
||||
|
||||
file << "\t<metadata>\n"
|
||||
<< "\t\t<system_datastore>"
|
||||
<< one_util::escape_xml(vm->get_remote_system_dir())
|
||||
<< "</system_datastore>\n";
|
||||
|
||||
if ( vm64 != 0 )
|
||||
{
|
||||
file << "\t\t<vm_xml64>"<< one_util::escape_xml(*vm64)<< "</vm_xml64>\n";
|
||||
delete vm64;
|
||||
}
|
||||
<< "\t\t</system_datastore>\n\t\t<opennebula>\n"
|
||||
<< vm->to_xml(vm_xml)
|
||||
<< "\t\t</opennebula>\n";
|
||||
|
||||
file << "\t</metadata>\n";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user