Move definition of xc and xend to avoid confusing pylint.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-09-18 16:00:24 +01:00
1 parent 33e481b28d
commit 4fbe918e12
1 file changed
+8 -2
+8 -2
View File
@@ -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')
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.