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] Only import xenapi_create when using the

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Only import xenapi_create when using the Xen-API server -- this has additional
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2007 09:50:20 -0700
Delivery-date: Tue, 20 Mar 2007 09:51:09 -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 Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174315611 0
# Node ID 126a2c3c6a9d82e772b4d58b501a1acec7a1c407
# Parent  bbda4759791789229d08499e194db8cdb418c4e7
Only import xenapi_create when using the Xen-API server -- this has additional
dependencies that we don't want to require in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r bbda47597917 -r 126a2c3c6a9d tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon Mar 19 14:00:07 2007 +0000
+++ b/tools/python/xen/xm/create.py     Mon Mar 19 14:46:51 2007 +0000
@@ -35,7 +35,6 @@ from xen.util import blkif
 from xen.util import blkif
 from xen.util import security
 from xen.xm.main import serverType, SERVER_XEN_API, get_single_vm
-from xen.xm.xenapi_create import sxp2xml, xenapi_create
 
 from xen.xm.opts import *
 
@@ -1249,6 +1248,7 @@ def main(argv):
             raise OptionError("Cannot read file %s: %s" % (config, exn[1]))
 
     if serverType == SERVER_XEN_API:
+        from xen.xm.xenapi_create import sxp2xml
         sxp2xml_inst = sxp2xml()
         doc = sxp2xml_inst.convert_sxp_to_xml(config, transient=True)
 
@@ -1266,6 +1266,7 @@ def main(argv):
         do_console(sxp.child_value(config, 'name', -1))
     
     if serverType == SERVER_XEN_API:        
+        from xen.xm.xenapi_create import xenapi_create
         xenapi_create_inst = xenapi_create()
         vm_refs = xenapi_create_inst.create(document = doc)
 

_______________________________________________
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] Only import xenapi_create when using the Xen-API server -- this has additional, Xen patchbot-unstable <=