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

Bug generating context in LibVirt driver

git-svn-id: http://svn.opennebula.org/one/trunk@463 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2009-04-10 15:24:29 +00:00
parent 0ec3d2e084
commit eb3af7219f

View File

@ -324,14 +324,14 @@ int LibVirtDriver::deployment_description(
if ( vm->get_template_attribute("CONTEXT",attrs) == 1 )
{
context = dynamic_cast<const VectorAttribute *>(attrs[0]);
target = disk->vector_value("TARGET");
target = context->vector_value("TARGET");
if ( !target.empty() )
{
file << "\t\t<disk type='file' device='disk'>" << endl;
file << "\t\t\t<source file='" << vm->get_remote_dir() << "/disk."
<< num << "'/>" << endl;
file << "\t\t\t<target dev='" << target << "'";
file << "\t\t\t<target dev='" << target << "'/>";
file << "\t\t\t<readonly/>" << endl;
file << "\t\t</disk>" << endl;
}