aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Wilkie <tom.wilkie@gmail.com>2007-05-01 11:36:44 +0100
committerTom Wilkie <tom.wilkie@gmail.com>2007-05-01 11:36:44 +0100
commit2b076853ac8b2a090a0d7f23741e78eb7b9251b8 (patch)
treeeddbfcd1aecb3f8e69d03a017ef53f52daa360a4
parent2816d048c57c50b6d28fef6286938da64239e8eb (diff)
downloadxen-2b076853ac8b2a090a0d7f23741e78eb7b9251b8.tar.gz
xen-2b076853ac8b2a090a0d7f23741e78eb7b9251b8.tar.bz2
xen-2b076853ac8b2a090a0d7f23741e78eb7b9251b8.zip
[XM] Fix get_single_vm bug
Stops traceback when given a bad domain name signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
-rw-r--r--tools/python/xen/xm/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py
index e1053e4e0b..1e0d8502e4 100644
--- a/tools/python/xen/xm/main.py
+++ b/tools/python/xen/xm/main.py
@@ -567,6 +567,8 @@ def get_single_vm(dom):
if len(uuids) > 0:
return uuids[0]
+ refs = []
+
try:
domid = int(dom)
refs = [vm_ref