ia64/xen-unstable

changeset 7112:688ebed7d41b

Minor tidy up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Wed Sep 28 15:09:24 2005 +0100 (2005-09-28)
parents ca78d9668fdb
children da98f8956925
files tools/python/xen/xend/server/SrvDomainDir.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDomainDir.py	Wed Sep 28 15:06:48 2005 +0100
     1.2 +++ b/tools/python/xen/xend/server/SrvDomainDir.py	Wed Sep 28 15:09:24 2005 +0100
     1.3 @@ -38,19 +38,17 @@ class SrvDomainDir(SrvDir):
     1.4          self.xd = XendDomain.instance()
     1.5  
     1.6      def domain(self, x):
     1.7 -        val = None
     1.8          dom = self.xd.domain_lookup_by_name(x)
     1.9          if not dom:
    1.10              raise XendError('No such domain ' + str(x))
    1.11 -        val = SrvDomain(dom)
    1.12 -        return val
    1.13 +        return SrvDomain(dom)
    1.14  
    1.15      def get(self, x):
    1.16          v = SrvDir.get(self, x)
    1.17          if v is not None:
    1.18              return v
    1.19 -        v = self.domain(x)
    1.20 -        return v
    1.21 +        else:
    1.22 +            return self.domain(x)
    1.23  
    1.24      def op_create(self, op, req):
    1.25          """Create a domain.