dom0/qvm-run: Notify qubes-manager about failed VM start (#615)
This commit is contained in:
parent
27b6aa4378
commit
897f981c8c
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
from qubes.qubes import QubesVmCollection
|
from qubes.qubes import QubesVmCollection
|
||||||
from qubes.qubes import QubesException
|
from qubes.qubes import QubesException
|
||||||
|
from qubes.guihelpers import notify_error_qubes_manager
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import subprocess
|
import subprocess
|
||||||
import socket
|
import socket
|
||||||
@ -89,6 +90,7 @@ def vm_run_cmd(vm, cmd, options):
|
|||||||
except QubesException as err:
|
except QubesException as err:
|
||||||
if options.tray:
|
if options.tray:
|
||||||
tray_notify_error(str(err))
|
tray_notify_error(str(err))
|
||||||
|
notify_error_qubes_manager(vm.name, str(err))
|
||||||
print >> sys.stderr, "ERROR: %s" % str(err)
|
print >> sys.stderr, "ERROR: %s" % str(err)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user