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] [XEND] Make sure lookups cause a refresh

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Make sure lookups cause a refresh so xm list gets the latest
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 06 Nov 2006 16:50:21 +0000
Delivery-date: Mon, 06 Nov 2006 08:51:28 -0800
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 5a291d87c33475850cea8895cc3dfa45f41bab40
# Parent  2b36aeb896c6ae896dd828180c6c6392f37c853a
[XEND] Make sure lookups cause a refresh so xm list gets the latest
info.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendConfig.py          |    2 +-
 tools/python/xen/xend/server/XMLRPCServer.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 2b36aeb896c6 -r 5a291d87c334 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Fri Nov 03 11:22:22 2006 +0000
+++ b/tools/python/xen/xend/XendConfig.py       Fri Nov 03 11:29:16 2006 +0000
@@ -702,7 +702,7 @@ class XendConfig(dict):
 
         # Fill in default values
         for key, default_func in DEFAULT_CONFIGURATION:
-            if key not in self:
+            if key not in self or self[key] == None:
                 self[key] = default_func(self)
 
         # Basic sanity checks
diff -r 2b36aeb896c6 -r 5a291d87c334 
tools/python/xen/xend/server/XMLRPCServer.py
--- a/tools/python/xen/xend/server/XMLRPCServer.py      Fri Nov 03 11:22:22 
2006 +0000
+++ b/tools/python/xen/xend/server/XMLRPCServer.py      Fri Nov 03 11:29:16 
2006 +0000
@@ -40,7 +40,7 @@ def fixup_sxpr(sexpr):
     return ret
 
 def lookup(domid):
-    info = XendDomain.instance().domain_lookup_nr(domid)
+    info = XendDomain.instance().domain_lookup(domid)
     if not info:
         raise XendInvalidDomain(str(domid))
     return info

_______________________________________________
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] [XEND] Make sure lookups cause a refresh so xm list gets the latest, Xen patchbot-unstable <=