tools: fix inverted logic check

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
Keir Fraser committed 2009-06-25 13:15:32 +01:00
1 parent 74be2ef5e1
commit d7e7ef6859
1 file changed
+3 -1
+3 -1
View File
@@ -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']:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.