If vm doesnt support volume_config raise TypeError
This commit is contained in:
parent
37ca33b0d1
commit
29f4be0f10
@ -445,10 +445,14 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
|||||||
for name, conf in volume_config.items():
|
for name, conf in volume_config.items():
|
||||||
for k, v in conf.items():
|
for k, v in conf.items():
|
||||||
self.volume_config[name][k] = v
|
self.volume_config[name][k] = v
|
||||||
|
elif volume_config:
|
||||||
|
raise TypeError(
|
||||||
|
'volume_config specified, but {} did not expect that.' %
|
||||||
|
self.__class__.__name__)
|
||||||
|
|
||||||
import qubes.vm.adminvm # pylint: disable=redefined-outer-name
|
import qubes.vm.adminvm # pylint: disable=redefined-outer-name
|
||||||
|
|
||||||
#Init private attrs
|
# Init private attrs
|
||||||
|
|
||||||
self._libvirt_domain = None
|
self._libvirt_domain = None
|
||||||
self._qdb_connection = None
|
self._qdb_connection = None
|
||||||
|
Loading…
Reference in New Issue
Block a user