dom0: qvm-backup-restore: also restore appmenus for template VMs
This commit is contained in:
parent
497afcf49b
commit
0863244561
@ -321,6 +321,12 @@ def main():
|
|||||||
host_collection.pop(vm.qid)
|
host_collection.pop(vm.qid)
|
||||||
continue
|
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...
|
# ... then appvms...
|
||||||
for vm in [ vm for vm in vms_to_restore if vm.is_appvm()]:
|
for vm in [ vm for vm in vms_to_restore if vm.is_appvm()]:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user