From cda6ae87510870b05911e8a948997249b03cc0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 28 Nov 2015 23:03:08 +0100 Subject: [PATCH] qvm-pci: one more fix - save changes --- qvm-tools/qvm-pci | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qvm-tools/qvm-pci b/qvm-tools/qvm-pci index 90a1aed6..72c5d186 100755 --- a/qvm-tools/qvm-pci +++ b/qvm-tools/qvm-pci @@ -79,7 +79,7 @@ def main(): if options.offline_mode: vmm.offline_mode = True - if options.do_add or options.do_delete or options.add_class: + if options.do_add or options.do_delete or options.do_add_class: qvm_collection = QubesVmCollection() qvm_collection.lock_db_for_writing() qvm_collection.load() @@ -121,6 +121,8 @@ def main(): for dev in devs: vm.pci_add(dev) + qvm_collection.save() + qvm_collection.unlock_db() elif options.do_delete: if len (args) < 2: