backup: fix handline "None" kernel

This commit is contained in:
Marek Marczykowski-Górecki 2016-03-16 00:57:19 +01:00 committed by Wojtek Porczyk
parent 412bcfa88b
commit 304d2b10bc

View File

@ -2237,7 +2237,7 @@ class BackupRestore(object):
if hasattr(vm, 'kernel'):
# TODO: add a setting for this?
if not vm.property_is_default('kernel') and \
if not vm.property_is_default('kernel') and vm.kernel and \
vm.kernel not in \
os.listdir(os.path.join(qubes.config.qubes_base_dir,
qubes.config.system_path[