appmenus: clone default whitelists for VM type
Don't bother with checking whether it is a template or not - when cloning VM disk files, copy those files anyway (if exist of course).
This commit is contained in:
parent
daf1fd4759
commit
fe209dfd24
@ -443,9 +443,8 @@ class AppmenusExtension(qubes.ext.Extension):
|
||||
yield self.template_icons_dir(vm)
|
||||
if os.path.exists(self.whitelist_path(vm)):
|
||||
yield self.whitelist_path(vm)
|
||||
if vm.is_template():
|
||||
for whitelist in (
|
||||
'vm-' + AppmenusSubdirs.whitelist,
|
||||
'netvm-' + AppmenusSubdirs.whitelist):
|
||||
if os.path.exists(os.path.join(vm.dir_path, whitelist)):
|
||||
yield os.path.join(vm.dir_path, whitelist)
|
||||
for whitelist in (
|
||||
'vm-' + AppmenusSubdirs.whitelist,
|
||||
'netvm-' + AppmenusSubdirs.whitelist):
|
||||
if os.path.exists(os.path.join(vm.dir_path, whitelist)):
|
||||
yield os.path.join(vm.dir_path, whitelist)
|
||||
|
Loading…
Reference in New Issue
Block a user