vm/qubesvm: simplify 'None' kernel handling

This commit is contained in:
Marek Marczykowski-Górecki 2017-06-12 12:26:57 +02:00
parent ee442c754f
commit caa03a9279
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -97,7 +97,7 @@ def _setter_name(self, prop, value):
def _setter_kernel(self, prop, value):
''' Helper for setting the domain kernel and running sanity checks on it.
''' # pylint: disable=unused-argument
if value is None or value == '':
if not value:
return ''
value = str(value)
if '/' in value: