mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Move definition of xc and xend to avoid confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
33e481b28d
commit
4fbe918e12
1 file changed
+8
-2
@@ -28,10 +28,10 @@ import time
|
||||
import threading
|
||||
import errno
|
||||
|
||||
import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
|
||||
import xen.lowlevel.xc
|
||||
from xen.util.blkif import blkdev_uname_to_file
|
||||
|
||||
from xen.xend.server import SrvDaemon; xend = SrvDaemon.instance()
|
||||
from xen.xend.server import SrvDaemon
|
||||
from xen.xend.server.channel import EventChannel
|
||||
|
||||
from xen.xend import sxp
|
||||
@@ -93,6 +93,12 @@ SIF_NET_BE_DOMAIN = (1<<5)
|
||||
SIF_TPM_BE_DOMAIN = (1<<7)
|
||||
|
||||
|
||||
xc = xen.lowlevel.xc.new()
|
||||
|
||||
|
||||
xend = SrvDaemon.instance()
|
||||
|
||||
|
||||
def domain_exists(name):
|
||||
# See comment in XendDomain constructor.
|
||||
xd = get_component('xen.xend.XendDomain')
|
||||
|
||||