backup: restore 'services' property

Fixes QubesOS/qubes-issues#2106
This commit is contained in:
Marek Marczykowski-Górecki 2016-07-16 21:49:16 +02:00
parent c5d03cc32e
commit 8222324146
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -2236,6 +2236,13 @@ def backup_restore_do(restore_info,
error_callback("ERROR: {0}".format(err))
error_callback("*** Some VM property will not be restored")
try:
for service, value in vm.services.items():
new_vm.services[service] = value
except Exception as err:
error_callback("ERROR: {0}".format(err))
error_callback("*** Some VM property will not be restored")
try:
new_vm.appmenus_create(verbose=callable(print_callback))
except Exception as err: