Skip to content

Commit 1bf7cc9

Browse files
committed
XSI-1887: Fix upgrade
Due to missing initialisation during a manual upgrade the installer was failing due to missing key in "answers" dictionary. Provides the missing default to avoid the missing key. Signed-off-by: Frediano Ziglio <[email protected]>
1 parent 6e8cbf6 commit 1bf7cc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,12 @@ def performInstallation(answers, ui_package, interactive):
312312
default_host_config = { 'dom0-mem': dom0_mem,
313313
'dom0-vcpus': dom0_vcpus,
314314
'xen-cpuid-masks': [] }
315-
defaults = { 'branding': {}, 'host-config': {}, 'write-boot-entry': True }
315+
defaults = {
316+
'branding': {},
317+
'host-config': {},
318+
'write-boot-entry': True,
319+
'target-platform': None,
320+
}
316321

317322
# update the settings:
318323
if answers['preserve-settings'] == True:

0 commit comments

Comments
 (0)