Add and use XendDomainInfo.getBackendFlags to decouple image.py from the

internals of XendDomainInfo, in preparation for changing the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-09-18 22:42:02 +01:00
1 parent 2c3b4d51c5
commit 03454aa712
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -354,6 +354,10 @@ class XendDomainInfo:
self.storeDom("store/ring-ref", ref)
def getBackendFlags(self):
return self.backend_flags
def closeStoreChannel(self):
"""Close the store channel, if any. Nothrow guarantee."""
+1 -1
View File
@@ -188,7 +188,7 @@ class ImageHandler:
return
# Set params and call buildDomain().
self.flags = self.vm.backend_flags
self.flags = self.vm.getBackendFlags()
if not os.path.isfile(self.kernel):
raise VmError('Kernel image does not exist: %s' % self.kernel)
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.