[XM] Fix get_single_vm bug

Stops traceback when given a bad domain name

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-05-01 11:36:44 +01:00
1 parent 2816d048c5
commit 2b076853ac
1 file changed
+2
+2
View File
@@ -567,6 +567,8 @@ def get_single_vm(dom):
if len(uuids) > 0:
return uuids[0]
refs = []
try:
domid = int(dom)
refs = [vm_ref
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.