Import qubesdb from the new module

fixes QubesOS/qubes-issues#1252
This commit is contained in:
Wojtek Porczyk 2016-03-02 15:35:43 +01:00
parent 5dca051b32
commit bf78e662f6

View File

@ -344,8 +344,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
'''QubesDB handle for this domain.'''
if self._qdb_connection is None:
if self.is_running():
import qubes.qdb
self._qdb_connection = qubes.qdb.QubesDB(self.name)
import qubesdb
self._qdb_connection = qubesdb.QubesDB(self.name)
return self._qdb_connection