From 15e032cddb3217824d966779ecefced9654b1d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 15 Mar 2016 21:18:43 +0100 Subject: [PATCH] qubes/vm: fix handling "None" kernel The "None" value still makes sense for HVM domains. --- qubes/vm/qubesvm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index d9f6fa99..ab0dcea7 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -98,6 +98,8 @@ def _setter_name(self, prop, value): def _setter_kernel(self, prop, value): # pylint: disable=unused-argument + if value is None: + return value value = str(value) dirname = os.path.join( qubes.config.system_path['qubes_base_dir'],