QubesVM serialize bool values from XML

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-12 17:56:49 +02:00
parent 4cc7b8d2a8
commit 3952cef556
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -421,10 +421,15 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
name = node.get('name')
assert name
for key, value in node.items():
self.volume_config[name][key] = value
# pylint: disable=no-member
if value == 'True':
self.volume_config[name][key] = True
else:
self.volume_config[name][key] = value
for name, conf in volume_config.items():
for key, value in conf.items():
# pylint: disable=no-member
self.volume_config[name][key] = value
elif volume_config: