mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
2c3b4d51c5
commit
03454aa712
2 files changed
+5
-1
No files matched your search
@@ -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."""
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||