From eb3af7219f66e50a2c1405859ae0337c8d1fd24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20S=2E=20Montero?= Date: Fri, 10 Apr 2009 15:24:29 +0000 Subject: [PATCH] Bug generating context in LibVirt driver git-svn-id: http://svn.opennebula.org/one/trunk@463 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/vmm/LibVirtDriver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmm/LibVirtDriver.cc b/src/vmm/LibVirtDriver.cc index 4c4530a40e..2ce3991a4a 100644 --- a/src/vmm/LibVirtDriver.cc +++ b/src/vmm/LibVirtDriver.cc @@ -324,14 +324,14 @@ int LibVirtDriver::deployment_description( if ( vm->get_template_attribute("CONTEXT",attrs) == 1 ) { context = dynamic_cast(attrs[0]); - target = disk->vector_value("TARGET"); + target = context->vector_value("TARGET"); if ( !target.empty() ) { file << "\t\t" << endl; file << "\t\t\t" << endl; - file << "\t\t\t"; file << "\t\t\t" << endl; file << "\t\t" << endl; }