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

Bugfixes for contextualization in xen

git-svn-id: http://svn.opennebula.org/one/trunk@422 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2009-03-18 13:31:35 +00:00
parent 93edbbbcf4
commit 15538a8ee5

View File

@ -265,14 +265,14 @@ int XenDriver::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 << " "
<< "'tap:aio:" << vm->get_remote_dir() << "/disk." << num <<","
<< target << ","
<< "ro'," << endl;
<< "r'," << endl;
}
else
{