From 21c174845bbc10bdb40a61ceaffafb36aabc017f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Font=C3=A1n=20Mui=C3=B1os?= Date: Wed, 20 Aug 2008 16:08:23 +0000 Subject: [PATCH] Fixed a bug that made one crash when template did not have OS attribute set git-svn-id: http://svn.opennebula.org/trunk@86 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/vmm/XenDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm/XenDriver.cc b/src/vmm/XenDriver.cc index 7639cbbe0e..ad35402913 100644 --- a/src/vmm/XenDriver.cc +++ b/src/vmm/XenDriver.cc @@ -122,7 +122,7 @@ int XenDriver::deployment_description( num = vm->get_template_attribute("OS",attrs); - if ( num >= 0 ) + if ( num > 0 ) { const VectorAttribute * os;