From 7886695c63bbae4e4279b53f21fe05c0316cd7e0 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Wed, 24 Jun 2015 15:39:29 +0200 Subject: [PATCH] qubes/vm/qubesvm: fix qid setter to accept str Mainly for loading from XML. --- qubes/vm/qubesvm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 1ba0ba32..ec9e9e00 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -57,6 +57,7 @@ except ImportError: def _setter_qid(self, prop, value): # pylint: disable=unused-argument + value = int(value) if not 0 <= value <= qubes.config.max_qid: raise ValueError( '{} value must be between 0 and qubes.config.max_qid'.format(