Don't try to set 'created-by-' tag when cloning VM

This tag can't be set from outside of qubesd.
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-14 04:14:46 +02:00
parent a3e3dac6dc
commit 68ed06a200
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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: