WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools: fix inverted logic check

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools: fix inverted logic check
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Jun 2009 08:57:18 -0700
Delivery-date: Fri, 26 Jun 2009 09:11:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245932132 -3600
# Node ID c30ace4ad49ffd2d35154be71e47cbe8fe7ba1c4
# Parent  e94691561b48f402dfe1ed12332aaa302798dce6
tools: fix inverted logic check

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/python/xen/xend/XendConfig.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r e94691561b48 -r c30ace4ad49f tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Thu Jun 25 13:14:37 2009 +0100
+++ b/tools/python/xen/xend/XendConfig.py       Thu Jun 25 13:15:32 2009 +0100
@@ -463,9 +463,11 @@ class XendConfig(dict):
             if 'device_model' not in self['platform']:
                 self['platform']['device_model'] = auxbin.pathTo("qemu-dm")
             # device_model may be set to 'qemu-dm' or 'stubdom-dm' w/o a path
-            if os.path.dirname(self['platform']['device_model']) != "":
+            if os.path.dirname(self['platform']['device_model']) == "":
                 self['platform']['device_model'] = \
                     auxbin.pathTo(self['platform']['device_model'])
+            if not os.path.exists(self['platform']['device_model']):
+                raise VmError("device model '%s' not found" % 
str(self['platform']['device_model']))
 
         if self.is_hvm():
             if 'timer_mode' not in self['platform']:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools: fix inverted logic check, Xen patchbot-unstable <=