direct-io.hg

changeset 14998:0e57b064f17a

[XM] Fix get_single_vm bug

Stops traceback when given a bad domain name

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Tue May 01 11:36:44 2007 +0100 (2007-05-01)
parents aeac9a7d97e0
children 2a530128f1dc
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Wed May 02 15:25:02 2007 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue May 01 11:36:44 2007 +0100
     1.3 @@ -567,6 +567,8 @@ def get_single_vm(dom):
     1.4          if len(uuids) > 0:
     1.5              return uuids[0]
     1.6  
     1.7 +        refs = []
     1.8 +
     1.9          try:
    1.10              domid = int(dom)
    1.11              refs = [vm_ref