From c13cf44e5e98b5e90f17498226e1e7e1a3fb4d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 15 Jun 2017 00:23:26 +0200 Subject: [PATCH] admin.vm.Create: add 'created-by-' tag --- qubes/api/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/api/admin.py b/qubes/api/admin.py index be596696..08da800b 100644 --- a/qubes/api/admin.py +++ b/qubes/api/admin.py @@ -737,6 +737,7 @@ class QubesAdminAPI(qubes.api.AbstractQubesAPI): self.fire_event_for_permission(pool=pool, pools=pools, **kwargs) vm = self.app.add_new_vm(vm_class, **kwargs) + vm.tags.add('created-by-' + str(self.src)) try: yield from vm.create_on_disk(pool=pool, pools=pools)