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] xen-api: Fix some errors in Xen-API's PBD

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen-api: Fix some errors in Xen-API's PBD class.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Feb 2008 11:00:13 -0800
Delivery-date: Mon, 11 Feb 2008 11:00: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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202741482 0
# Node ID 7fd49c55c0b0bd3b0668cb2483688abfa64d9ad6
# Parent  e3b7f1793f0c110c2adb61b494adbdf55b9196fe
xen-api: Fix some errors in Xen-API's PBD class.
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/python/xen/xend/XendPBD.py |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff -r e3b7f1793f0c -r 7fd49c55c0b0 tools/python/xen/xend/XendPBD.py
--- a/tools/python/xen/xend/XendPBD.py  Mon Feb 11 14:50:50 2008 +0000
+++ b/tools/python/xen/xend/XendPBD.py  Mon Feb 11 14:51:22 2008 +0000
@@ -20,6 +20,7 @@ from XendLogging import log
 from XendLogging import log
 from xen.xend.XendBase import XendBase
 from xen.xend import XendAPIStore
+from xen.xend import uuid as genuuid
 
 class XendPBD(XendBase):
     """Physical block devices."""
@@ -39,8 +40,7 @@ class XendPBD(XendBase):
         return XendBase.getAttrRW() + attrRW
 
     def getAttrInst(self):
-        return ['uuid',
-                'host',
+        return ['host',
                 'SR',
                 'device_config']
 
@@ -61,31 +61,31 @@ class XendPBD(XendBase):
     getFuncs    = classmethod(getFuncs)
 
     def recreate(uuid, record):
-        pbd = XendPBD(uuid, record)
+        pbd = XendPBD(record, uuid)
         return uuid
     
     def create(cls, record):
         uuid = genuuid.createString()
-        pbd = XendPBD(uuid, record)
-        return uuid       
+        pbd = XendPBD(record, uuid)
+        return uuid
 
     create = classmethod(create)
     
-    def __init__(self, uuid, record):
+    def __init__(self, record,  uuid):
         XendBase.__init__(self, uuid, record)
-        this.currently_attached = True
+        self.currently_attached = True
 
     def get_host(self):
-        return this.host
+        return self.host
     
     def get_SR(self):
-        return this.SR
+        return self.SR
 
     def get_device_config(self):
-        return this.device_config
+        return self.device_config
 
     def get_currently_attached(self):
-        return this.currently_attached
+        return self.currently_attached
 
     def destroy(self):
         pass

_______________________________________________
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] xen-api: Fix some errors in Xen-API's PBD class., Xen patchbot-unstable <=