WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XM] Fix get_single_vm bug

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM] Fix get_single_vm bug
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 03 May 2007 08:20:09 -0700
Delivery-date: Thu, 03 May 2007 08:19:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Tom Wilkie <tom.wilkie@xxxxxxxxx>
# Date 1178015804 -3600
# Node ID 0e57b064f17a7013cedceb96b8020e475c9a5358
# Parent  aeac9a7d97e0840a7c9a916c130c865b0b1ff6db
[XM] Fix get_single_vm bug

Stops traceback when given a bad domain name

signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/python/xen/xm/main.py |    2 ++
 1 files changed, 2 insertions(+)

diff -r aeac9a7d97e0 -r 0e57b064f17a tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Wed May 02 15:25:02 2007 +0100
+++ b/tools/python/xen/xm/main.py       Tue May 01 11:36:44 2007 +0100
@@ -566,6 +566,8 @@ def get_single_vm(dom):
         uuids = server.xenapi.VM.get_by_name_label(dom)
         if len(uuids) > 0:
             return uuids[0]
+
+        refs = []
 
         try:
             domid = int(dom)

_______________________________________________
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] [XM] Fix get_single_vm bug, Xen patchbot-unstable <=