qvm-tools: fix qvm-firewall -r

This commit is contained in:
Marek Marczykowski-Górecki 2015-04-23 03:46:46 +02:00
parent 1a284f18fb
commit 1d69f2c24a

View File

@ -308,11 +308,11 @@ def main():
if changed:
vm.write_firewall_conf(conf)
qvm_collection.save()
if changed or options.reload:
if vm.is_running():
if vm.netvm is not None and vm.netvm.is_proxyvm():
vm.netvm.write_iptables_qubesdb_entry()
qvm_collection.save()
if not options.do_list:
qvm_collection.unlock_db()