# HG changeset patch
# User emellor@ewan
# Node ID 6f49c06d5feba1af5f90cd268c3847aaaeeabb4d
# Parent 679e93b5c6cda85d7483ad3b13b0f5f7e8d8c274
Remove unused imports, and unused progress parameters from domain_save,
domain_restore. Rename one instance of id to domid.
diff -r 679e93b5c6cd -r 6f49c06d5feb tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py Tue Sep 27 21:05:03 2005
+++ b/tools/python/xen/xend/XendDomain.py Tue Sep 27 21:06:15 2005
@@ -28,13 +28,11 @@
from xen.xend import sxp
from xen.xend import XendRoot
from xen.xend import XendCheckpoint
-from xen.xend.XendDomainInfo import XendDomainInfo, shutdown_reason
+from xen.xend.XendDomainInfo import XendDomainInfo
from xen.xend import EventServer
from xen.xend.XendError import XendError
from xen.xend.XendLogging import log
-from xen.xend import scheduler
from xen.xend.server import relocate
-from xen.xend.xenstore.xstransact import xstransact
xc = xen.lowlevel.xc.new()
@@ -157,15 +155,15 @@
eserver.inject('xend.domain.create', [info.getName(),
info.getDomid()])
- def _delete_domain(self, id, notify=True):
+ def _delete_domain(self, domid, notify=True):
"""Remove a domain from the tables.
@param id: domain id
@param notify: send a domain died event if true
"""
- info = self.domains.get(id)
+ info = self.domains.get(domid)
if info:
- del self.domains[id]
+ del self.domains[domid]
info.cleanup()
info.delete()
if notify:
@@ -235,11 +233,10 @@
config = nested
return XendDomainInfo.restore(config)
- def domain_restore(self, src, progress=False):
+ def domain_restore(self, src):
"""Restore a domain from file.
@param src: source file
- @param progress: output progress if true
"""
try:
@@ -367,12 +364,11 @@
return None
- def domain_save(self, id, dst, progress=False):
+ def domain_save(self, id, dst):
"""Start saving a domain to file.
@param id: domain id
@param dst: destination file
- @param progress: output progress if true
"""
try:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|