use correct template file
@@ -569,7 +569,7 @@ class Plugin:
output = ""
cfg_template = Template(template=self.path_dirs.cfg_file)
use_existing_image = False
- result = template.option('build-options',
+ result = cfg_template.option('build-options',
'use_existing_images')
if result[0]:
use_existing_image = result[1]
