Fix qvm-start

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-06-21 17:03:04 +02:00
parent 66f46d8a25
commit 87ae5a3b65
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE
2 changed files with 1 additions and 9 deletions

View File

@ -128,17 +128,9 @@ def main(args=None):
vm.debug = args.debug
try:
vm.verify_files()
except (IOError, OSError) as e:
parser.error(
'error verifying files for domain {!r}: {!r}'.format(vm.name, e))
try:
#xid =
vm.start(
preparing_dvm=args.preparing_dvm,
start_guid=args.start_guid)
# notify_function=
except qubes.exc.QubesException as e:
parser.error_runtime('Qubes error: {!r}'.format(e))

View File

@ -325,7 +325,7 @@ class NetVMMixin(qubes.events.Emitter):
pass
@qubes.events.handler('firewall-changed', 'domain-spawn')
def on_firewall_changed(self, event):
def on_firewall_changed(self, event, **kwargs):
''' Reloads the firewall if vm is running and has a NetVM assigned '''
# pylint: disable=unused-argument
if self.is_running() and self.netvm: