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] Minor tidy up.

# HG changeset patch
# User emellor@ewan
# Node ID 688ebed7d41b529bef8a6e74b460e7bcceb3a97e
# Parent  ca78d9668fdbb90ef116f6fe90b4ebef9eee2b35
Minor tidy up.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r ca78d9668fdb -r 688ebed7d41b 
tools/python/xen/xend/server/SrvDomainDir.py
--- a/tools/python/xen/xend/server/SrvDomainDir.py      Wed Sep 28 14:06:48 2005
+++ b/tools/python/xen/xend/server/SrvDomainDir.py      Wed Sep 28 14:09:24 2005
@@ -38,19 +38,17 @@
         self.xd = XendDomain.instance()
 
     def domain(self, x):
-        val = None
         dom = self.xd.domain_lookup_by_name(x)
         if not dom:
             raise XendError('No such domain ' + str(x))
-        val = SrvDomain(dom)
-        return val
+        return SrvDomain(dom)
 
     def get(self, x):
         v = SrvDir.get(self, x)
         if v is not None:
             return v
-        v = self.domain(x)
-        return v
+        else:
+            return self.domain(x)
 
     def op_create(self, op, req):
         """Create a domain.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Minor tidy up., Xen patchbot -unstable <=