# HG changeset patch # User emellor@ewan # Date 1127079722 -3600 # Node ID 8f9dfc5fb51c6110c3b59d53ee9f40dec90a58ba # Parent 578a73fdeb2f3b76f83ad167691e07385e0f623e 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 diff -r 578a73fdeb2f -r 8f9dfc5fb51c tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Sun Sep 18 22:41:12 2005 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Sun Sep 18 22:42:02 2005 +0100 @@ -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.""" diff -r 578a73fdeb2f -r 8f9dfc5fb51c tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Sun Sep 18 22:41:12 2005 +0100 +++ b/tools/python/xen/xend/image.py Sun Sep 18 22:42:02 2005 +0100 @@ -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)