admin.vm.Create: add commend about 'created-by-' tag

This commit is contained in:
Marek Marczykowski-Górecki 2017-06-19 16:20:54 +02:00
parent c13cf44e5e
commit 8196b2d5bf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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)
# TODO: move this to extension (in race-free fashion)
vm.tags.add('created-by-' + str(self.src))
try: