Commit 368d09f6 authored by Cédric Bosdonnat's avatar Cédric Bosdonnat

service: fix bad ConfigMountHostImage constructor call

Since commit 68406aff ConfigMountHostImage needs a format parameter,
virt-sandbox-service needs to fit the new API.
Reviewed-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
parent f1c302de
......@@ -20,6 +20,8 @@
#
import gi
gi.require_version('LibvirtGConfig', '1.0')
from gi.repository import LibvirtGConfig
gi.require_version('LibvirtGObject', '1.0')
from gi.repository import LibvirtGObject
gi.require_version('LibvirtSandbox', '1.0')
......@@ -223,7 +225,8 @@ class Container:
def gen_filesystems(self):
if self.use_image:
self.image = self.DEFAULT_IMAGE % self.get_name()
mount = LibvirtSandbox.ConfigMountHostImage.new(self.image, self.dest)
mount = LibvirtSandbox.ConfigMountHostImage.new(self.image, self.dest,
LibvirtGConfig.DomainDiskFormat.RAW)
self.config.add_mount(mount)
def fix_stat(self, f):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment