[elbe-devel] [PATCH v2 8/8] init libvirt.xml.mako: fix defaults to default in imagetype readout

Torben Hohn torben.hohn at linutronix.de
Tue May 8 17:10:46 CEST 2018


imagetype default is broken currently. but its not used because a value
is specified in elbepack/init/default-init.xml

fix it by using the correct parameter name "default"

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/init/libvirt.xml.mako | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/init/libvirt.xml.mako b/elbepack/init/libvirt.xml.mako
index 064f38b9..c2b3d077 100644
--- a/elbepack/init/libvirt.xml.mako
+++ b/elbepack/init/libvirt.xml.mako
@@ -22,7 +22,7 @@ name = cfg['initvm_domain']
 cpus = multiprocessing.cpu_count()
 memory = size_to_int(prj.text('mem', default=defs, key='mem')) / 1024
 
-imagetype = prj.text('img', defaults=defs, key='img')
+imagetype = prj.text('img', default=defs, key='img')
 img = os.path.join(opt.directory, 'buildenv.img')
 
 emulator = prj.text('interpreter', default=defs, key='interpreter')
-- 
2.11.0




More information about the elbe-devel mailing list