From 68ed06a2005c3f4639313605c1f6111409348c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 14 Jul 2017 04:14:46 +0200 Subject: [PATCH] Don't try to set 'created-by-' tag when cloning VM This tag can't be set from outside of qubesd. --- qubesadmin/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubesadmin/app.py b/qubesadmin/app.py index f8a5424..f0ca78f 100644 --- a/qubesadmin/app.py +++ b/qubesadmin/app.py @@ -344,6 +344,8 @@ class QubesBase(qubesadmin.base.PropertyHolder): raise for tag in src_vm.tags: + if tag.startswith('created-by-'): + continue try: dst_vm.tags.add(tag) except qubesadmin.exc.QubesException as e: