From 9cdf99436054a15949ef6ac0cbbedc7c5b4828ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 16 Jun 2016 16:57:44 +0200 Subject: [PATCH] Minor fixes --- qubes/ext/r3compatibility.py | 3 +-- qubes/utils.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/qubes/ext/r3compatibility.py b/qubes/ext/r3compatibility.py index b1ccaeb5..240370ba 100644 --- a/qubes/ext/r3compatibility.py +++ b/qubes/ext/r3compatibility.py @@ -117,8 +117,7 @@ class R3Compatibility(qubes.ext.Extension): self.write_services(vm) - # FIXME use event after creating Xen domain object, but before "resume" - @qubes.ext.handler('domain-start') + @qubes.ext.handler('domain-spawn') def on_domain_started(self, vm, event, **kwargs): # pylint: disable=unused-argument if vm.netvm: diff --git a/qubes/utils.py b/qubes/utils.py index 66fcc40d..8f0e3121 100644 --- a/qubes/utils.py +++ b/qubes/utils.py @@ -87,8 +87,6 @@ def format_doc(docstring): config_section=None, enable_exit_status=None) return pub.writer.document.astext() -# FIXME those are wrong, k/M/G are SI prefixes and means 10**3 -# maybe adapt https://code.activestate.com/recipes/578019 def parse_size(size): units = [ ('K', 1000), ('KB', 1000),