admin.vm.Create: add 'created-by-' tag
This commit is contained in:
parent
5f187bd2bf
commit
c13cf44e5e
@ -737,6 +737,7 @@ class QubesAdminAPI(qubes.api.AbstractQubesAPI):
|
|||||||
self.fire_event_for_permission(pool=pool, pools=pools, **kwargs)
|
self.fire_event_for_permission(pool=pool, pools=pools, **kwargs)
|
||||||
|
|
||||||
vm = self.app.add_new_vm(vm_class, **kwargs)
|
vm = self.app.add_new_vm(vm_class, **kwargs)
|
||||||
|
vm.tags.add('created-by-' + str(self.src))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
yield from vm.create_on_disk(pool=pool, pools=pools)
|
yield from vm.create_on_disk(pool=pool, pools=pools)
|
||||||
|
Loading…
Reference in New Issue
Block a user