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 some small bugs in XenAPI create

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM] Fix some small bugs in XenAPI create code.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 03 May 2007 08:20:10 -0700
Delivery-date: Thu, 03 May 2007 08:19:19 -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 1178016040 -3600
# Node ID 2a530128f1dccd38a7a9514d4e7dbc08a0ee5760
# Parent  0e57b064f17a7013cedceb96b8020e475c9a5358
[XM] Fix some small bugs in XenAPI create code.

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

diff -r 0e57b064f17a -r 2a530128f1dc tools/python/xen/xm/xenapi_create.py
--- a/tools/python/xen/xm/xenapi_create.py      Tue May 01 11:36:44 2007 +0100
+++ b/tools/python/xen/xm/xenapi_create.py      Tue May 01 11:40:40 2007 +0100
@@ -374,7 +374,7 @@ class xenapi_create:
             "device":
                 vbd.attributes["device"].value,
             "bootable":
-                vbd.attributes["bootable"].value,
+                vbd.attributes["bootable"].value == "True",
             "mode":
                 vbd.attributes["mode"].value,
             "type":
@@ -401,9 +401,9 @@ class xenapi_create:
             if network_name in networks.keys():
                 network_uuid = networks[network_name]
             else:
-                networks = dict([(record['name_label'], record['uuid'])
-                                 for record in
-                                 server.xenapi.network.get_all_records()])
+                networks = dict([(record['name_label'], ref)
+                                 for ref, record in
+                                 
server.xenapi.network.get_all_records().items()])
                 if network_name in networks.keys():
                     network_uuid = networks[network_name]
                 else:

_______________________________________________
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 some small bugs in XenAPI create code., Xen patchbot-unstable <=