dom0: qvm-backup-restore: also restore appmenus for template VMs

This commit is contained in:
Joanna Rutkowska 2011-09-12 14:28:44 +02:00
parent 497afcf49b
commit 0863244561

View File

@ -321,6 +321,12 @@ def main():
host_collection.pop(vm.qid)
continue
try:
vm.create_appmenus(verbose=True)
except Exception as err:
print "ERROR during appmenu restore: {0}".format(err)
print "*** VM '{0}' will not have appmenus".format(vm.name)
# ... then appvms...
for vm in [ vm for vm in vms_to_restore if vm.is_appvm()]: