|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] tools: fix inverted logic check
# 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 <=
|
|
|
|
|