From 9da5ae81690398b69dfbcb07c9163ccd50dbfa4e Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Wed, 23 Sep 2015 15:41:58 +0200 Subject: [PATCH] qvm-create: fix --template option --- qubes/tools/qvm_create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/tools/qvm_create.py b/qubes/tools/qvm_create.py index cee620c5..bc46e872 100644 --- a/qubes/tools/qvm_create.py +++ b/qubes/tools/qvm_create.py @@ -96,8 +96,8 @@ def main(): except KeyError: parser.error('no such domain class: {!r}'.format(args.cls)) - if 'template' in args.properties \ - and 'template' not in cls.list_properties(): + if 'template' in args.properties and \ + 'template' not in (prop.__name__ for prop in cls.property_list()): parser.error('this domain class does not support template') vm = app.add_new_vm(cls, **args.properties)